More modifications to the C++ interface. Changing the return type of a
[m6w6/libmemcached] / clients / utilities.c
index 466c048543d100207ba08e2f0b569612ec6e4583..6551684db003f26c0497c80d149d0da1f6f04b3e 100644 (file)
@@ -9,9 +9,9 @@ long int timedif(struct timeval a, struct timeval b)
 {
   register int us, s;
 
-  us = a.tv_usec - b.tv_usec;
+  us = (int)(a.tv_usec - b.tv_usec);
   us /= 1000;
-  s = a.tv_sec - b.tv_sec;
+  s = (int)(a.tv_sec - b.tv_sec);
   s *= 1000;
   return s + us;
 }