elm test: resolve possible integer overflow

This commit is contained in:
JongMin Lee 2018-04-24 19:56:19 +09:00 committed by Hermet Park
parent 454cc48841
commit f6fc78119b
1 changed files with 2 additions and 2 deletions

View File

@ -522,8 +522,8 @@ _bounce_cb(void *data)
unsigned long long tll, t0ll, tdll, frames;
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t);
t0ll = (t0.tv_sec * 1000000000) + t0.tv_nsec;
tll = (t.tv_sec * 1000000000) + t.tv_nsec;
t0ll = ((unsigned long long) t0.tv_sec * 1000000000ULL) + t0.tv_nsec;
tll = ((unsigned long long) t.tv_sec * 1000000000ULL) + t.tv_nsec;
tdll = tll - t0ll;
frames = bounce->frames ?: 1;
printf("NS since frame 2 = %llu , %llu frames = %llu / frame\n",