From 1dd7ce8749788a311614fada842016b8683ac6b9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 30 Sep 2016 09:08:24 +0100 Subject: benchmarks/gem_blt: Remove () causing integer overflow In the middle of a line of double calculations is (int * int) and a potential overflow. Signed-off-by: Chris Wilson --- benchmarks/gem_blt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmarks/gem_blt.c') diff --git a/benchmarks/gem_blt.c b/benchmarks/gem_blt.c index 31b8b208..1958b1cd 100644 --- a/benchmarks/gem_blt.c +++ b/benchmarks/gem_blt.c @@ -81,7 +81,7 @@ static int baseline(uint64_t bytes, int milliseconds) free(mem); - return ceil(1e-3*milliseconds/elapsed(&start, &end) * (count * size) / bytes); + return ceil(1e-3*milliseconds/elapsed(&start, &end) * count * size / bytes); } static int gem_linear_blt(int fd, -- cgit v1.2.3