summaryrefslogtreecommitdiff
path: root/upb/descriptor/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'upb/descriptor/reader.c')
-rw-r--r--upb/descriptor/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/descriptor/reader.c b/upb/descriptor/reader.c
index 0b289c0..29a2188 100644
--- a/upb/descriptor/reader.c
+++ b/upb/descriptor/reader.c
@@ -319,7 +319,7 @@ static bool parse_default(char *str, upb_fielddef *f) {
break;
}
case UPB_TYPE_UINT32: {
- long val = strtoul(str, &end, 0);
+ unsigned long val = strtoul(str, &end, 0);
if (val > UINT32_MAX || errno == ERANGE || *end)
success = false;
else
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback