mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 11:56:16 +01:00
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:
parent
953f4fc25f
commit
94d53af427
@ -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++)
|
||||
|
Loading…
Reference in New Issue
Block a user