tests: fix test_object JSMN_PRIMITIVE bug

Specify the argument after JSMN_PRIMITIVE as "0" instead of 0 so
that weird things don't happen on OSX due to using it later with
`va_arg(..., char *)` in `vtokeq`.
master
Jon Simons 9 years ago
parent b77d84ba48
commit e3f2629a56

@ -44,7 +44,7 @@ int test_object(void) {
check(parse("{\"a\": 0, \"b\": \"c\"}", 5, 5,
JSMN_OBJECT, -1, -1, 2,
JSMN_STRING, "a", 1,
JSMN_PRIMITIVE, 0,
JSMN_PRIMITIVE, "0",
JSMN_STRING, "b", 1,
JSMN_STRING, "c", 0));

Loading…
Cancel
Save