From a2b1a22a79e99f94ad4a858f03f016746d418bcd Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Sat, 4 May 2024 09:45:43 -0400 Subject: [PATCH] fix --- tests/soak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/soak.c b/tests/soak.c index 488c7a7..2b7e41e 100644 --- a/tests/soak.c +++ b/tests/soak.c @@ -633,11 +633,11 @@ sparsemap_idx_t _sparsemap_merge(sparsemap_t **map, sparsemap_t *other) { do { - ssize_t retval = sparsemap_merge(*map, other); + int retval = sparsemap_merge(*map, other); if (retval != 0) { if (errno == ENOSPC) { size_t new_size = retval + (64 - (retval % 64)) + 64; - *map = sparsemap_set_data_size(*map, sparsemap_get_capacity(*map) + , NULL); + *map = sparsemap_set_data_size(*map, sparsemap_get_capacity(*map) + new_size, NULL); assert(*map != NULL); errno = 0; } else {