Fix incorrect cast to ssize_t.

gcc 4.2.1 warns about a possible incorrect cast to ssize_t when comparing against refcount, which is of type size_t. signed vs unsigned comparison.

Sinc warnings are treated as errors (as in the autoconf project) this would cause a compile error.
This commit is contained in:
Joakim Söderberg 2013-02-27 23:38:17 +01:00 committed by Joakim Soderberg
parent 52a8072727
commit 344d2b00ea

View File

@ -26,7 +26,6 @@ static void run_tests()
/* /*
* Simple, valid json_pack cases * Simple, valid json_pack cases
*/ */
/* true */ /* true */
value = json_pack("b", 1); value = json_pack("b", 1);
if(!json_is_true(value)) if(!json_is_true(value))