Replace insert with assign to fix issue #15
authorJeff Preshing <filter-github@preshing.com>
Thu, 25 Aug 2016 16:47:40 +0000 (12:47 -0400)
committerJeff Preshing <filter-github@preshing.com>
Thu, 25 Aug 2016 16:47:40 +0000 (12:47 -0400)
samples/MapMemoryBench/MapMemoryBench.cpp

index e0c8fdc..5cb0975 100644 (file)
@@ -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();