summaryrefslogtreecommitdiff
path: root/src/libexecline/el_parse.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2022-05-26 12:55:33 +0000
committerLaurent Bercot <ska@appnovation.com>2022-05-26 12:55:33 +0000
commit8e0d2759f61d61a83a362a950754120bedbf2ce1 (patch)
tree14d081a847c325a803ea2630f2ea80f4bccd5375 /src/libexecline/el_parse.c
parent7b631e14a70f6c2e8dcabd2713422bc585af2703 (diff)
downloadexecline-8e0d2759f61d61a83a362a950754120bedbf2ce1.tar.xz
Consistency pass
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libexecline/el_parse.c')
-rw-r--r--src/libexecline/el_parse.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libexecline/el_parse.c b/src/libexecline/el_parse.c
index 6ef7ce9..23a9df5 100644
--- a/src/libexecline/el_parse.c
+++ b/src/libexecline/el_parse.c
@@ -69,18 +69,18 @@ int el_parse (stralloc *sa, el_chargen_func_ref next, void *source)
if (!blevel--) return -4 ;
sa->len -= 2 ;
}
- if (c & 0x0400) if (!stralloc_catb(sa, (char *)&cur, 1)) return -1 ;
- if (c & 0x0200)
+ if (c & 0x0400U) if (!stralloc_catb(sa, (char *)&cur, 1)) return -1 ;
+ if (c & 0x0200U)
{
char x = 7 + byte_chr("abtnvfr", 7, cur) ;
if (!stralloc_catb(sa, &x, 1)) return -1 ;
}
- if (c & 0x0100)
+ if (c & 0x0100U)
{
if (n++ >= INT_MAX) return (errno = E2BIG, -1) ;
if (!stralloc_0(sa)) return -1 ;
}
- if (c & 0x0080)
+ if (c & 0x0080U)
{
switch (cur)
{