Explorar o código

Fix compile on Snow Leopard

Sebastian Hahn %!s(int64=16) %!d(string=hai) anos
pai
achega
772ce9d085
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/util.c

+ 1 - 1
src/common/util.c

@@ -1055,7 +1055,7 @@ tv_to_msec(const struct timeval *tv)
 {
   int64_t conv = ((int64_t)tv->tv_sec)*1000L;
   /* Round ghetto-style */
-  conv += (tv->tv_usec+500)/1000L;
+  conv += ((int64_t)tv->tv_usec+500)/1000L;
   return conv;
 }