From 422f39101d09893e4fd2f044452610af83f91436 Mon Sep 17 00:00:00 2001 From: ademin Date: Sat, 13 Feb 2010 18:12:29 +0000 Subject: [PATCH] src: Fixed integer conversion warning on HPUX. This fixes cmockery issue #10. Signed-off-by: Andreas Schneider --- src/cmockery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1