mirror of https://github.com/mgba-emu/mgba.git
Util: Fix inserting too many items into a hash table
This commit is contained in:
parent
aaf12cad27
commit
37ddf7020b
1
CHANGES
1
CHANGES
|
@ -43,6 +43,7 @@ Bugfixes:
|
|||
- GBA: Count up timers should not count themselves
|
||||
- GBA Savedata: Fix savedata sync timer
|
||||
- GBA Savedata: Only unmap savedata if present
|
||||
- Util: Fix inserting too many items into a hash table
|
||||
Misc:
|
||||
- 3DS: Use blip_add_delta_fast for a small speed improvement
|
||||
- OpenGL: Log shader compilation failure
|
||||
|
|
|
@ -175,6 +175,7 @@ void HashTableInsert(struct Table* table, const char* key, void* value) {
|
|||
}
|
||||
return;
|
||||
} TABLE_LOOKUP_END;
|
||||
list = _resizeAsNeeded(table, list, hash);
|
||||
list->list[list->nEntries].key = hash;
|
||||
list->list[list->nEntries].stringKey = strdup(key);
|
||||
list->list[list->nEntries].keylen = strlen(key);
|
||||
|
|
Loading…
Reference in New Issue