summaryrefslogtreecommitdiff
path: root/upb/json/printer.c
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2015-05-06 17:12:06 -0700
committerJoshua Haberman <jhaberman@gmail.com>2015-05-06 17:12:06 -0700
commitbd7ea8c6f1854aa37b7792c6f23334ffc0fd94ff (patch)
treeda5a49a715a9af60fd6630e3462ad0b1bf8781c0 /upb/json/printer.c
parent535bc2fe2f2b467f59347ffc9449e11e47791257 (diff)
parent508c39ee133d6725a4440ba98a1555e2026975c2 (diff)
Merge pull request #16 from martinmaly/warnings
Resolve compilation errors if compiled with strict warnings.
Diffstat (limited to 'upb/json/printer.c')
-rw-r--r--upb/json/printer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/upb/json/printer.c b/upb/json/printer.c
index deae058..c7267e0 100644
--- a/upb/json/printer.c
+++ b/upb/json/printer.c
@@ -162,7 +162,7 @@ static bool putkey(void *closure, const void *handler_data) {
return true;
}
-#define CHKFMT(val) if ((val) == -1) return false;
+#define CHKFMT(val) if ((val) == (size_t)-1) return false;
#define CHK(val) if (!(val)) return false;
#define TYPE_HANDLERS(type, fmt_func) \
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback