From 5bb059e5a357331f91fde818f703f0a0aae14a42 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Wed, 22 Jan 2020 11:00:26 +0100 Subject: [PATCH] tests: fix #77 --- tests/libmemcached-1.0/ketama.cc | 2 +- tests/libmemcached-1.0/pool.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/libmemcached-1.0/ketama.cc b/tests/libmemcached-1.0/ketama.cc index 4dfaf2bf..83c18aa8 100644 --- a/tests/libmemcached-1.0/ketama.cc +++ b/tests/libmemcached-1.0/ketama.cc @@ -245,7 +245,7 @@ test_return_t ketama_compatibility_spymemcached(memcached_st *) test_compare(MEMCACHED_SUCCESS, memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED, 1)); - test_compare(UINT64_C(1), memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED)); + test_compare(uint64_t(1), memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_KETAMA_WEIGHTED)); test_compare(MEMCACHED_SUCCESS, memcached_behavior_set_distribution(memc, MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY)); test_compare(MEMCACHED_DISTRIBUTION_CONSISTENT_KETAMA_SPY, memcached_behavior_get_distribution(memc)); diff --git a/tests/libmemcached-1.0/pool.cc b/tests/libmemcached-1.0/pool.cc index a09faa69..457cf962 100644 --- a/tests/libmemcached-1.0/pool.cc +++ b/tests/libmemcached-1.0/pool.cc @@ -191,7 +191,7 @@ test_return_t connection_pool2_test(memcached_st *memc) test_compare(MEMCACHED_SUCCESS, rc); } - test_compare(UINT64_C(9999), memcached_behavior_get(mmc[1], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); + test_compare(uint64_t(9999), memcached_behavior_get(mmc[1], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); test_compare(MEMCACHED_SUCCESS, memcached_pool_release(pool, mmc[1])); test_compare(MEMCACHED_SUCCESS, memcached_pool_release(pool, mmc[0])); @@ -202,7 +202,7 @@ test_return_t connection_pool2_test(memcached_st *memc) test_compare(MEMCACHED_SUCCESS, rc); } - test_compare(UINT64_C(9999), memcached_behavior_get(mmc[0], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); + test_compare(uint64_t(9999), memcached_behavior_get(mmc[0], MEMCACHED_BEHAVIOR_IO_MSG_WATERMARK)); test_compare(MEMCACHED_SUCCESS, memcached_pool_release(pool, mmc[0])); test_true(memcached_pool_destroy(pool) == memc); -- 2.30.2