aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expr.c b/expr.c
index 5a8086a..e969241 100644
--- a/expr.c
+++ b/expr.c
@@ -365,7 +365,7 @@ decodechar(const char *src, uint_least32_t *chr, bool *hexoct, const char *desc,
uint_least32_t c;
size_t n;
int i;
- const char *s = src;
+ const unsigned char *s = (const unsigned char *)src;
if (*s == '\\') {
++s;
@@ -406,7 +406,7 @@ decodechar(const char *src, uint_least32_t *chr, bool *hexoct, const char *desc,
s += n;
}
*chr = c;
- return s - src;
+ return s - (const unsigned char *)src;
}
static size_t