Commit 000d196b authored by Yaowu Xu's avatar Yaowu Xu

Properly upgrade int before operation

Change-Id: Ibca63a41bdffaab2ee603497e8a5fc66d5b7d11f
parent 40e597fc
...@@ -82,7 +82,7 @@ static INLINE int64_t aom_usec_timer_elapsed(struct aom_usec_timer *t) { ...@@ -82,7 +82,7 @@ static INLINE int64_t aom_usec_timer_elapsed(struct aom_usec_timer *t) {
struct timeval diff; struct timeval diff;
timersub(&t->end, &t->begin, &diff); timersub(&t->end, &t->begin, &diff);
return (int64_t)diff.tv_sec * 1000000 + diff.tv_usec; return ((int64_t)diff.tv_sec) * 1000000 + diff.tv_usec;
#endif #endif
} }
......
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