We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de892f9 commit 061c84fCopy full SHA for 061c84f
1 file changed
input/bsv/uint32s_index.c
@@ -263,7 +263,7 @@ void uint32s_index_pop(uint32s_index_t *index)
263
uint32_t idx = RBUF_LEN(index->objects)-1;
264
uint32_t *object = RBUF_POP(index->objects);
265
size_t size_bytes = index->object_size * sizeof(uint32_t);
266
- uint32_t hash = uint32s_hash_bytes((uint8_t *)object, size_bytes);
+ uint32_t hash = index->hashes[idx];
267
struct uint32s_bucket *bucket = RHMAP_PTR(index->index, hash);
268
RBUF_RESIZE(index->counts, idx);
269
RBUF_RESIZE(index->hashes, idx);
0 commit comments