all repos — mgba @ 37ddf7020b29fb100c73cd5fe5090e12f8210a43

mGBA Game Boy Advance Emulator

Util: Fix inserting too many items into a hash table
Jeffrey Pfau jeffrey@endrift.com
Mon, 19 Sep 2016 15:01:58 -0700
commit

37ddf7020b29fb100c73cd5fe5090e12f8210a43

parent

aaf12cad27f3b90c68ac955b5ac0194f10b71682

2 files changed, 2 insertions(+), 0 deletions(-)

jump to
M CHANGESCHANGES

@@ -43,6 +43,7 @@ - GBA Video: Fix out-of-order OBJWIN

- 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
M src/util/table.csrc/util/table.c

@@ -175,6 +175,7 @@ lookupResult->value = 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);