diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-18 12:04:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-18 12:05:15 +0000 |
commit | e99e643ed1f2856109426f791a7615ee122d7c42 (patch) | |
tree | faf740cbb284796d24209349b22872248467d112 /test/render-copyarea-size.c | |
parent | b6924161108214b4e50c25f4168564ead4000430 (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/render-copyarea-size.c')
-rw-r--r-- | test/render-copyarea-size.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/render-copyarea-size.c b/test/render-copyarea-size.c index 65fb6caf..55e3b56b 100644 --- a/test/render-copyarea-size.c +++ b/test/render-copyarea-size.c @@ -65,7 +65,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; |