Merge "vpx_usec_timer_elapsed: use 64-bit math"

This commit is contained in:
James Zern
2017-02-13 21:00:33 +00:00
committed by Gerrit Code Review

View File

@@ -83,7 +83,7 @@ static INLINE int64_t vpx_usec_timer_elapsed(struct vpx_usec_timer *t) {
struct timeval diff;
timersub(&t->end, &t->begin, &diff);
return diff.tv_sec * 1000000 + diff.tv_usec;
return (int64_t)diff.tv_sec * 1000000 + diff.tv_usec;
#endif
}