aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index 2572b33..cac2c7d 100644
--- a/utils.c
+++ b/utils.c
@@ -116,7 +116,7 @@ unsigned char unescapechar(const char *escaped, const char **end)
break;
}
case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': { // Octal
- ret = escaped[0] - '0';
+ ret = (unsigned char)escaped[0] - '0';
if ('0' <= escaped[1] && escaped[1] <= '7') {
++len;
ret = (ret << 3) | (escaped[1] - '0');