diff options
author | Martin Maly <mmaly@google.com> | 2015-05-06 13:18:33 -0700 |
---|---|---|
committer | Martin Maly <mmaly@google.com> | 2015-05-06 16:50:30 -0700 |
commit | 508c39ee133d6725a4440ba98a1555e2026975c2 (patch) | |
tree | da5a49a715a9af60fd6630e3462ad0b1bf8781c0 /upb/handlers.c | |
parent | 535bc2fe2f2b467f59347ffc9449e11e47791257 (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.c | 2 |
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; } |