From e99e643ed1f2856109426f791a7615ee122d7c42 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 18 Nov 2013 12:04:29 +0000 Subject: tests: Avoid dependence on undefined C Right-shifting by a negative value is undefined. Signed-off-by: Chris Wilson --- test/basic-copyarea-size.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/basic-copyarea-size.c') diff --git a/test/basic-copyarea-size.c b/test/basic-copyarea-size.c index 732bb816..5e3373d9 100644 --- a/test/basic-copyarea-size.c +++ b/test/basic-copyarea-size.c @@ -57,7 +57,7 @@ int main(int argc, char **argv) printf("size=%d\n", size); for (i = 0; i <= DEFAULT_ITERATIONS; i++) { - int reps = 1 << i; + int reps = REPS(i); do { int sx = rand() % (2*size) - size; int sy = rand() % (2*size) - size; -- cgit v1.2.3