summaryrefslogtreecommitdiff
path: root/upb/handlers.c
diff options
context:
space:
mode:
authorMartin Maly <mmaly@google.com>2015-05-06 13:18:33 -0700
committerMartin Maly <mmaly@google.com>2015-05-06 16:50:30 -0700
commit508c39ee133d6725a4440ba98a1555e2026975c2 (patch)
treeda5a49a715a9af60fd6630e3462ad0b1bf8781c0 /upb/handlers.c
parent535bc2fe2f2b467f59347ffc9449e11e47791257 (diff)
Resolve compilation errors if compiled with more stringent semantic checks.
Adding Travis test to build with strict warnings. Fixing a warning in a test which used signed/unsigned integer comparison.
Diffstat (limited to 'upb/handlers.c')
-rw-r--r--upb/handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/handlers.c b/upb/handlers.c
index fd19633..fe368e5 100644
--- a/upb/handlers.c
+++ b/upb/handlers.c
@@ -574,7 +574,7 @@ bool upb_handlers_getselector(const upb_fielddef *f, upb_handlertype_t type,
*s = f->selector_base;
break;
}
- assert(*s < upb_fielddef_containingtype(f)->selector_count);
+ assert((size_t)*s < upb_fielddef_containingtype(f)->selector_count);
return true;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback