summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--cmap_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmap_test.c b/cmap_test.c
index 5e1a9064..aec99192 100644
--- a/cmap_test.c
+++ b/cmap_test.c
@@ -94,10 +94,10 @@ int main()
CMap(id) mymap = cmap_INIT;
for (i = 0; i < 600000; ++i)
- cmap_id_put(&mymap, i*i, i * 1.0);
+ cmap_id_put(&mymap, i*i, i);
for (i = 1000; i < 1010; ++i)
- printf("look %d: %f\n", i*i, *cmap_id_get(mymap, i*i));
+ printf("look %d: %f\n", i*i, cmap_id_get(mymap, i*i)->value);
cmap_id_destroy(&mymap);
}