summaryrefslogtreecommitdiff
path: root/upb/descriptor
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2015-05-13 16:23:35 -0700
committerJosh Haberman <jhaberman@gmail.com>2015-05-13 17:10:14 -0700
commiteace8e32954eb6152e8df06f5a18905c235f0156 (patch)
tree21d0bc239693c8cb4b3ea898ffea1ee694f6ac2f /upb/descriptor
parent51cf616dab63ba65c30cc58f0e5a61724aa4f731 (diff)
Enable Travis for Clang, and enable -Werror for all Travis builds.
Also added an extra Clang-only warning flag.
Diffstat (limited to 'upb/descriptor')
-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