aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-01-01 20:34:23 -0800
committerMichael Forney <mforney@mforney.org>2022-01-01 20:34:23 -0800
commit0bc29c89c13a61806a28f054f04a01afd8242669 (patch)
treeec5bf4b2aad8aad056045f489e6efb56ee7c8708 /expr.c
parentaefb830ede6316f5fcf4c3c48b79a661c66c9f2e (diff)
Remove dependency on signed integer representation
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