]> pd.if.org Git - nbds/blobdiff - test/txn_test.c
Warning tests are failing in this version
[nbds] / test / txn_test.c
index 80b8f93dd3dd8550a33673b1a1a774828a985c8c..5a7606ad7a81fbea60941069bf1e902bad1a1c1d 100644 (file)
@@ -13,7 +13,7 @@ void test1 (CuTest* tc) {
     map_t *map = map_alloc(&ht_map_impl, NULL);
     txn_t *t1 = txn_begin(map);
     txn_t *t2 = txn_begin(map);
-    void *k1 = (void *)1;
+    map_key_t k1 = (map_key_t)1;
     txn_map_set(t1, k1, 2);
     txn_map_set(t1, k1, 3);
     ASSERT_EQUAL( DOES_NOT_EXIST, txn_map_get(t2, k1) );