Commit 464600ba authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Upgrade to int64_t to avoid out of range

Change-Id: Ic4719c70567b9a9faef15b3d09ebe920750aa19e
parent fd8c78c4
......@@ -82,7 +82,7 @@ static INLINE int64_t aom_usec_timer_elapsed(struct aom_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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment