tests/checkasm/lpc: reduce range and use signed values
This is more similar to its regular use, and prevents inaccuracies of huge float*float multiplications from failing the tests.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#define randomize_int32(buf, len) \
|
||||
do { \
|
||||
for (int i = 0; i < len; i++) { \
|
||||
int32_t f = rnd() >> 8; \
|
||||
int32_t f = (UINT32_MAX >> 8) - (rnd() >> 16); \
|
||||
buf[i] = f; \
|
||||
} \
|
||||
} while (0)
|
||||
|
Reference in New Issue
Block a user