Fix compilation issues with gcc 4.4.1 on macosx
[awesomized/libmemcached] / clients / memstat.c
index 37e18e229c8e6e10193207d0aeb8d02687ca8712..e6783b68c095c7a8de4b2f88309a2ce5f53aceed 100644 (file)
@@ -169,11 +169,11 @@ static void run_analyzer(memcached_st *memc, memcached_stat_st *memc_stat,
       gettimeofday(&end_time, NULL);
 
       elapsed_time= timedif(end_time, start_time);
-      elapsed_time /= num_of_tests;
+      elapsed_time /= (long)num_of_tests;
 
       if (elapsed_time > slowest_time)
       {
-        slowest_server= x;
+        slowest_server= (long)x;
         slowest_time= elapsed_time;
       }