diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2009-09-01 05:23:47 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2009-09-01 22:16:46 +0200 |
commit | 0a71d1c6a7289cbadcef5f4a28dd94307decc5be (patch) | |
tree | 3a49133baf8c81fd7f962d9c0a8f01f63cb26a64 /src/common/util.c | |
parent | a95947b0d74ec8313313919624ec99a62b91ff5c (diff) | |
download | tor-0a71d1c6a7289cbadcef5f4a28dd94307decc5be.tar.gz tor-0a71d1c6a7289cbadcef5f4a28dd94307decc5be.zip |
Fix compile warnings on Snow Leopard
Big thanks to nickm and arma for helping me with this!
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c index 90f952f793..e4e073d99a 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1066,7 +1066,7 @@ tv_mdiff(const struct timeval *start, const struct timeval *end) return LONG_MAX; } - mdiff = secdiff*1000L + (end->tv_usec - start->tv_usec) / 1000L; + mdiff = secdiff*1000L + ((long)end->tv_usec - (long)start->tv_usec) / 1000L; return mdiff; } |