From: Brendan Hansen Date: Tue, 9 Jun 2020 15:09:00 +0000 (-0500) Subject: Bug fix in new bh_hash implementation X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=eba4a9c00134ab118e771f4f3505040c16d81fae;p=onyx.git Bug fix in new bh_hash implementation --- diff --git a/include/bh.h b/include/bh.h index a3854e78..d07b0e42 100644 --- a/include/bh.h +++ b/include/bh.h @@ -1749,6 +1749,7 @@ void bh__hash_delete(bh__hash *table, i32 elemsize, char *key) { found_matching: bh__arr_deleten((void **) &arrptr, 1, byte_offset, delete_len); table->arrs[index] = arrptr; + (*(u64 *) arrptr)--; // OLD: // while (len && strncmp(key, (char *) walker, BH__HASH_STORED_KEY_SIZE) != 0) { diff --git a/onyx b/onyx index 74885350..b8520ee2 100755 Binary files a/onyx and b/onyx differ