From 08e8c0a5d141eff45e6bab3a394e8cf2ca79f6bc Mon Sep 17 00:00:00 2001 From: Greg Burd Date: Thu, 9 May 2024 16:01:28 -0400 Subject: [PATCH] chunk align --- src/sparsemap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sparsemap.c b/src/sparsemap.c index 2877058..f76061e 100644 --- a/src/sparsemap.c +++ b/src/sparsemap.c @@ -1125,7 +1125,7 @@ sparsemap_set(sparsemap_t *map, sparsemap_idx_t idx, bool value) __sm_append_data(map, &buf[0], sizeof(buf)); uint8_t *p = __sm_get_chunk_data(map, 0); - *(sm_idx_t *)p = __sm_get_vector_aligned_offset(idx); // TODO: get_fully_aligned_offset? + *(sm_idx_t *)p = __sm_get_chunk_aligned_offset(idx); // TODO: this was get_vector_aligned_offset __sm_set_chunk_count(map, 1);