diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-07 12:05:40 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-07 12:05:40 +0200 |
commit | 2b6cf578af214f3e80777446e5bfa4be53734e74 (patch) | |
tree | 82b969efc1434b2cb734ba4f882ca2635768ae3c | |
parent | 083b7bab01e8c57ca50927fdf9d3d4d8d45068a4 (diff) | |
download | quickjs-2b6cf578af214f3e80777446e5bfa4be53734e74.tar.gz quickjs-2b6cf578af214f3e80777446e5bfa4be53734e74.zip |
removed unused slack in hash_map_resize() (saghul)
-rw-r--r-- | quickjs.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -46898,7 +46898,6 @@ static JSMapRecord *map_find_record(JSContext *ctx, JSMapState *s, static void map_hash_resize(JSContext *ctx, JSMapState *s) { uint32_t new_hash_size, h; - size_t slack; struct list_head *el; JSMapRecord *mr, **new_hash_table; @@ -46907,8 +46906,8 @@ static void map_hash_resize(JSContext *ctx, JSMapState *s) new_hash_size = 4; else new_hash_size = s->hash_size * 2; - new_hash_table = js_realloc2(ctx, s->hash_table, - sizeof(new_hash_table[0]) * new_hash_size, &slack); + new_hash_table = js_realloc(ctx, s->hash_table, + sizeof(new_hash_table[0]) * new_hash_size); if (!new_hash_table) return; |