diff options
author | Michael Forney <mforney@mforney.org> | 2022-01-01 20:34:23 -0800 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-01-01 20:34:23 -0800 |
commit | 0bc29c89c13a61806a28f054f04a01afd8242669 (patch) | |
tree | ec5bf4b2aad8aad056045f489e6efb56ee7c8708 /expr.c | |
parent | aefb830ede6316f5fcf4c3c48b79a661c66c9f2e (diff) |
Remove dependency on signed integer representation
Diffstat (limited to 'expr.c')
-rw-r--r-- | expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |