From 14c0b8f835d26899c22eb7e747ccdffb775c49f2 Mon Sep 17 00:00:00 2001 From: Jeff Preshing Date: Thu, 25 Aug 2016 12:47:40 -0400 Subject: [PATCH] Replace insert with assign to fix issue #15 --- samples/MapMemoryBench/MapMemoryBench.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/MapMemoryBench/MapMemoryBench.cpp b/samples/MapMemoryBench/MapMemoryBench.cpp index e0c8fdc..5cb0975 100644 --- a/samples/MapMemoryBench/MapMemoryBench.cpp +++ b/samples/MapMemoryBench/MapMemoryBench.cpp @@ -44,7 +44,7 @@ int main() { for (ureg target = population + StepSize; population < target; population++) { u32 key = u32(population + 1) * Prime; if (key >= 2) { - map->insert(key, (void*) uptr(key)); + map->assign(key, (void*) uptr(key)); population++; threadCtx.update(); ureg inUseBytes = TURF_HEAP.getInUseBytes(); -- 2.34.1