tests: Fix operator precedence in slice-concurrent

This regressed in commit 9f558a2c50.

Not sure if it makes a functional difference to the test, though.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-12-19 09:57:39 +00:00
parent 953f4fc25f
commit 94d53af427

View File

@ -53,7 +53,7 @@ thread_func (void *arg)
g_test_message ("%c", 'a' - 1 + td->thread_id);
/* allocate block of random size and randomly fill */
bytes = g_random_int_range (0, MAX_BLOCK_SIZE + 1);
bytes = g_random_int_range (0, MAX_BLOCK_SIZE) + 1;
mem = g_slice_alloc (bytes);
for (f = 0; f < bytes; f++)