aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/expr.c b/expr.c
index d1458a4..986f438 100644
--- a/expr.c
+++ b/expr.c
@@ -363,10 +363,10 @@ isodigit(int c)
return '0' <= c && c <= '8';
}
-static int
+static unsigned
unescape(char **p)
{
- int c;
+ unsigned c;
char *s = *p;
if (*s == '\\') {
@@ -397,7 +397,7 @@ unescape(char **p)
while (isodigit(*++s));
}
} else {
- c = *s++;
+ c = (unsigned char)*s++;
}
*p = s;
return c;
@@ -456,7 +456,8 @@ primaryexpr(struct scope *s)
struct expr *e;
struct decl *d;
struct type *t;
- char *src, *dst, *end;
+ char *src, *end;
+ unsigned char *dst;
int base;
switch (tok.kind) {