summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/shootout2_cmap.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-10-02 11:35:45 +0200
committerTyge Løvset <[email protected]>2021-10-02 11:35:45 +0200
commitc952b72df544e5d4cb555140f4d0c3f251444b45 (patch)
treeeb450502f5313af5cea7f52450193c08ac2aad17 /benchmarks/shootout2_cmap.cpp
parent09a07970445dc34b986b1836679616ab8de81792 (diff)
downloadSTC-modified-c952b72df544e5d4cb555140f4d0c3f251444b45.tar.gz
STC-modified-c952b72df544e5d4cb555140f4d0c3f251444b45.zip
Fixed benchmarks regarding cmap find bug.
Diffstat (limited to 'benchmarks/shootout2_cmap.cpp')
-rw-r--r--benchmarks/shootout2_cmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/shootout2_cmap.cpp b/benchmarks/shootout2_cmap.cpp
index 6224c1f3..77d458bc 100644
--- a/benchmarks/shootout2_cmap.cpp
+++ b/benchmarks/shootout2_cmap.cpp
@@ -38,7 +38,7 @@ stc64_t rng;
#define CMAP_PUT(X, key, val) cmap_##X##_emplace_or_assign(&map, key, val).ref->second
#define CMAP_EMPLACE(X, key, val) cmap_##X##_emplace(&map, key, val).ref->second
#define CMAP_ERASE(X, key) cmap_##X##_erase(&map, key)
-#define CMAP_FIND(X, key) (cmap_##X##_find(map, key) != NULL)
+#define CMAP_FIND(X, key) cmap_##X##_contains(map, key)
#define CMAP_FOR(X, i) c_foreach (i, cmap_##X, map)
#define CMAP_ITEM(X, i) i.ref->second
#define CMAP_SIZE(X) cmap_##X##_size(map)