diff options
Diffstat (limited to 'src/common')
-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; } |