Replace insert with assign to fix issue #15
[junction.git] / samples / MapMemoryBench / MapMemoryBench.cpp
index e0c8fdcca62749560de67591dc3f9a055bbf079c..5cb0975da3cec7bc7b8c6f55f2bbc817d67dc30a 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();