summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-04-20 15:03:43 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-04-20 15:03:43 -0400
commitadc0e91ddbe70c2127d39c337d9b4a09ea752425 (patch)
tree36d573976865ff5793812edb6ea3261799bfb742 /build.c
parenta57a9682e74ff3609acb2ca6697fc6fa94c23fb6 (diff)
silence GCC warnings
Diffstat (limited to 'build.c')
-rw-r--r--build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.c b/build.c
index 216c28e..ba85cdd 100644
--- a/build.c
+++ b/build.c
@@ -160,7 +160,7 @@ static int parse_nonnegative_integer(char32_t **str, char32_t *end) {
int n = 0;
for (number_len = 0; s != end && s[number_len] >= '0' && s[number_len] <= '9'; ++number_len) {
n *= 10;
- n += s[number_len] - '0';
+ n += (int)s[number_len] - '0';
}
if (number_len == 0)
return -1;