Commit 7b9c5bc6 authored by osku's avatar osku

sync0arr.c: Fix compilation error on some systems by introducing all

variables at the start of a block.
parent 243e54a1
......@@ -896,11 +896,12 @@ sync_array_signal_object(
if (cell_count == cell_max_count) {
sync_cell_t** old_cell_ptr = cell_ptr;
size_t old_size = cell_max_count *
size_t old_size, new_size;
old_size = cell_max_count *
sizeof(sync_cell_t*);
cell_max_count *= 2;
size_t new_size = cell_max_count *
new_size = cell_max_count *
sizeof(sync_cell_t*);
cell_ptr = malloc(new_size);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment