]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a compile warning on OS X 10.6
authorSebastian Hahn <sebastian@torproject.org>
Thu, 7 Apr 2011 03:30:49 +0000 (05:30 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 7 Apr 2011 03:47:55 +0000 (05:47 +0200)
src/or/circuituse.c

index 447ec8412d9322d7465294e78819a2e8935e0671..3d5db98ee18e9fbb5a95e946c06e1129c073b2ab 100644 (file)
@@ -291,7 +291,7 @@ circuit_expire_building(void)
     long ms = tor_lround(msec);                             \
     struct timeval diff;                                    \
     diff.tv_sec = ms / 1000;                                \
-    diff.tv_usec = (ms % 1000) * 1000;                      \
+    diff.tv_usec = (int)((ms % 1000) * 1000);               \
     timersub(&now, &diff, &target);                         \
   } while (0)