projects
/
jansson.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Unify unsigned integer usage in the API
[jansson.git]
/
test
/
suites
/
api
/
test_simple.c
diff --git
a/test/suites/api/test_simple.c
b/test/suites/api/test_simple.c
index
1769c65
..
9e1dba3
100644
(file)
--- 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();
/* Test reference counting on singletons (true, false, null) */
value = json_true();
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting true works incorrectly");
json_decref(value);
fail("refcounting true works incorrectly");
json_decref(value);
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting true works incorrectly");
json_incref(value);
fail("refcounting true works incorrectly");
json_incref(value);
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting true works incorrectly");
value = json_false();
fail("refcounting true works incorrectly");
value = json_false();
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting false works incorrectly");
json_decref(value);
fail("refcounting false works incorrectly");
json_decref(value);
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting false works incorrectly");
json_incref(value);
fail("refcounting false works incorrectly");
json_incref(value);
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting false works incorrectly");
value = json_null();
fail("refcounting false works incorrectly");
value = json_null();
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting null works incorrectly");
json_decref(value);
fail("refcounting null works incorrectly");
json_decref(value);
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting null works incorrectly");
json_incref(value);
fail("refcounting null works incorrectly");
json_incref(value);
- if(value->refcount != (
unsigned in
t)-1)
+ if(value->refcount != (
size_
t)-1)
fail("refcounting null works incorrectly");
return 0;
fail("refcounting null works incorrectly");
return 0;