aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-12-30 21:20:54 -0800
committerBruce Hill <bruce@bruce-hill.com>2020-12-30 21:20:54 -0800
commitae27a7eec4c1d03f9c2a90708ad5f3db3ca0603e (patch)
tree4693841a4dada08a518ef096550b0b391c8ffb58 /utils.c
parent323da51fb7b4960bc0ef4f086f057ae702864d23 (diff)
Fixed some minor issues
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');