summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJongMin Lee <jm105.lee@samsung.com>2018-04-24 19:56:19 +0900
committerHermet Park <hermetpark@gmail.com>2018-04-24 19:57:51 +0900
commitf6fc78119b3309fbd22f6a2b115caaf30b98169a (patch)
treec2c377acd4ce451c9168145e6e20e0c8a9bc4043 /src
parent454cc488419e969e481ee4fff20869b13c1c9f4d (diff)
elm test: resolve possible integer overflow
Diffstat (limited to 'src')
-rw-r--r--src/bin/elementary/test_scroller.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/elementary/test_scroller.c b/src/bin/elementary/test_scroller.c
index ead5bbca34..7517cb177c 100644
--- a/src/bin/elementary/test_scroller.c
+++ b/src/bin/elementary/test_scroller.c
@@ -522,8 +522,8 @@ _bounce_cb(void *data)
522 unsigned long long tll, t0ll, tdll, frames; 522 unsigned long long tll, t0ll, tdll, frames;
523 523
524 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t); 524 clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t);
525 t0ll = (t0.tv_sec * 1000000000) + t0.tv_nsec; 525 t0ll = ((unsigned long long) t0.tv_sec * 1000000000ULL) + t0.tv_nsec;
526 tll = (t.tv_sec * 1000000000) + t.tv_nsec; 526 tll = ((unsigned long long) t.tv_sec * 1000000000ULL) + t.tv_nsec;
527 tdll = tll - t0ll; 527 tdll = tll - t0ll;
528 frames = bounce->frames ?: 1; 528 frames = bounce->frames ?: 1;
529 printf("NS since frame 2 = %llu , %llu frames = %llu / frame\n", 529 printf("NS since frame 2 = %llu , %llu frames = %llu / frame\n",