summaryrefslogtreecommitdiff
path: root/test/basic-copyarea-size.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-11-18 12:04:29 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-11-18 12:05:15 +0000
commite99e643ed1f2856109426f791a7615ee122d7c42 (patch)
treefaf740cbb284796d24209349b22872248467d112 /test/basic-copyarea-size.c
parentb6924161108214b4e50c25f4168564ead4000430 (diff)
tests: Avoid dependence on undefined C
Right-shifting by a negative value is undefined. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/basic-copyarea-size.c')
-rw-r--r--test/basic-copyarea-size.c2
1 files changed, 1 insertions, 1 deletions
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;