From 9033898be9ca67f0f3b3311ba657e13e2df87e4d Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Thu, 18 Dec 2014 10:33:57 +0100 Subject: [PATCH] Fix 32 bits warnings --- tester/log_collection_tester.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tester/log_collection_tester.c b/tester/log_collection_tester.c index d3851717a..c7b43beb7 100644 --- a/tester/log_collection_tester.c +++ b/tester/log_collection_tester.c @@ -102,7 +102,7 @@ LinphoneCoreManager* setup(bool_t enable_logs) { time_t check_file(LinphoneCoreManager* mgr) { - uint64_t last_log = ms_time(NULL); + time_t last_log = ms_time(NULL); char* filepath = linphone_core_compress_log_collection(mgr->lc); time_t time_curr = -1; uint32_t timediff = 0; @@ -142,7 +142,7 @@ time_t check_file(LinphoneCoreManager* mgr) { ms_free(filepath); } - timediff = labs(time_curr - last_log); + timediff = labs((long int)time_curr - (long int)last_log); CU_ASSERT_TRUE( timediff <= 1 ); if( !(timediff <= 1) ){