From e259ed7807dd9474cc94ba625db4dcd573431362 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Wed, 3 Nov 2021 11:30:06 +0100 Subject: Changed container_X_get() and container_X_at() to return const value* (or const mapped*). Added container_X_getmut() for mutable version. Updated docs. --- benchmarks/csmap_benchmark.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmarks/csmap_benchmark.cpp') diff --git a/benchmarks/csmap_benchmark.cpp b/benchmarks/csmap_benchmark.cpp index bb055367..47762791 100644 --- a/benchmarks/csmap_benchmark.cpp +++ b/benchmarks/csmap_benchmark.cpp @@ -91,7 +91,7 @@ Sample test_stc_map() { stc64_srandom(seed); s.test[FIND].t1 = clock(); size_t sum = 0; - csmap_x_value* val; + const csmap_x_value* val; c_forrange (N) if ((val = csmap_x_get(&con, stc64_random() & mask1))) sum += val->second; -- cgit v1.2.3