diff options
author | Adam Jackson <ajax@redhat.com> | 2019-10-31 17:27:38 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2019-11-01 14:36:54 -0400 |
commit | 85acb0a933bffbce6af03339546aff0a1eab5096 (patch) | |
tree | 80d1580b6ff1880e034a33b28993298dce576380 | |
parent | 1f5b20c4aa19461a84799387c8e9107b6010ea24 (diff) | |
download | pixman-85acb0a933bffbce6af03339546aff0a1eab5096.tar.gz |
test: Fix unrepresentable subtraction in stress-test
Does not make the test pass, but does fix this error:
../test/stress-test.c:538:25: runtime error: signed integer overflow: 2147483647 - -2 cannot be represented in type 'int'
-rw-r--r-- | test/stress-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stress-test.c b/test/stress-test.c index 6b4f7d6..13d9979 100644 --- a/test/stress-test.c +++ b/test/stress-test.c @@ -521,7 +521,7 @@ set_general_properties (pixman_image_t *image, pixman_bool_t allow_alpha_map) if (image->type == BITS && prng_rand_n (8) != 0) { uint32_t width, height; - int x, y; + uint32_t x, y; int i; /* Also add a couple of clip rectangles inside the image |