aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.c b/src/common/util.c
index a69ea33d0..d05c308fe 100644
--- a/src/common/util.c
+++ b/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;
}