From: ademin Date: Sat, 13 Feb 2010 18:12:29 +0000 (+0000) Subject: src: Fixed integer conversion warning on HPUX. X-Git-Tag: cmocka-1.1.1~352 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=422f39101d09893e4fd2f044452610af83f91436;p=platform%2Fupstream%2Fcmocka.git src: Fixed integer conversion warning on HPUX. This fixes cmockery issue #10. Signed-off-by: Andreas Schneider --- diff --git a/src/cmockery.c b/src/cmockery.c index 889ffee..ec92333 100755 --- a/src/cmockery.c +++ b/src/cmockery.c @@ -1769,7 +1769,7 @@ int _run_tests(const UnitTest * const tests, const size_t number_of_tests) { if (number_of_test_states) { print_error("[ ERROR ] Mismatched number of setup %d and " "teardown %d functions\n", setups, teardowns); - total_failed = -1; + total_failed = (size_t)-1; } free(test_states);