X-Git-Url: http://www.project-moonshot.org/gitweb/?p=jansson.git;a=blobdiff_plain;f=test%2Fsuites%2Fapi%2Ftest_simple.c;h=9e1dba34032ca42da926b857c8d7477ddfb36700;hp=1769c653dfe74c40a7c474e2cbae37eac5d33cb1;hb=68f2861e92e08eb5e2af51c026981bc1e990e1eb;hpb=2caac965d4f675b51815be4a5ae1f305587be911 diff --git a/test/suites/api/test_simple.c b/test/suites/api/test_simple.c index 1769c65..9e1dba3 100644 --- a/test/suites/api/test_simple.c +++ b/test/suites/api/test_simple.c @@ -152,33 +152,33 @@ int main() /* Test reference counting on singletons (true, false, null) */ value = json_true(); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting true works incorrectly"); json_decref(value); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting true works incorrectly"); json_incref(value); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting true works incorrectly"); value = json_false(); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting false works incorrectly"); json_decref(value); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting false works incorrectly"); json_incref(value); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting false works incorrectly"); value = json_null(); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting null works incorrectly"); json_decref(value); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting null works incorrectly"); json_incref(value); - if(value->refcount != (unsigned int)-1) + if(value->refcount != (size_t)-1) fail("refcounting null works incorrectly"); return 0;