diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/upb_def.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/upb_def.c b/src/upb_def.c index 3b21443..61d1a3e 100644 --- a/src/upb_def.c +++ b/src/upb_def.c @@ -728,7 +728,7 @@ static bool upb_fielddef_setdefault(upb_string *dstr, upb_value *d, int type) { case UPB_TYPE(UINT32): case UPB_TYPE(FIXED32): if (strz) { - long val = strtoul(strz, &end, 0); + unsigned long val = strtoul(strz, &end, 0); if (val > UINT32_MAX || errno == ERANGE || *end) success = false; else |