You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
tests/checkasm/lpc: correct arithmetic when randomizing buffers
Results weren't signed.
This commit is contained in:
@@ -25,7 +25,7 @@
|
|||||||
#define randomize_int32(buf, len) \
|
#define randomize_int32(buf, len) \
|
||||||
do { \
|
do { \
|
||||||
for (int i = 0; i < len; i++) { \
|
for (int i = 0; i < len; i++) { \
|
||||||
int32_t f = (UINT32_MAX >> 8) - (rnd() >> 16); \
|
int32_t f = ((int)(UINT32_MAX >> 17)) - ((int)(rnd() >> 16)); \
|
||||||
buf[i] = f; \
|
buf[i] = f; \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Reference in New Issue
Block a user