mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-12 00:43:11 +02:00
tests: Fix operator precedence in slice-concurrent
This regressed in commit 9f558a2c5017860c92d69396d36dc7a6b6a4e2af. 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);
|
g_test_message ("%c", 'a' - 1 + td->thread_id);
|
||||||
|
|
||||||
/* allocate block of random size and randomly fill */
|
/* 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);
|
mem = g_slice_alloc (bytes);
|
||||||
|
|
||||||
for (f = 0; f < bytes; f++)
|
for (f = 0; f < bytes; f++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user