From: Brian Aker Date: Tue, 20 Jul 2010 04:45:48 +0000 (-0700) Subject: Found issue from Fedora builder compiling with --with-debug X-Git-Tag: 0.44~17 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=d7e255b8e8d6096eb3309f5e3d0ccc808c64a8f7;p=m6w6%2Flibmemcached Found issue from Fedora builder compiling with --with-debug --- diff --git a/tests/mem_functions.c b/tests/mem_functions.c index 510d6ace..a970a11e 100644 --- a/tests/mem_functions.c +++ b/tests/mem_functions.c @@ -4425,20 +4425,20 @@ static test_return_t util_version_test(memcached_st *memc) test_true(if_successful == true); if (instance->micro_version > 0) - if_successful= libmemcached_util_version_check(memc, instance->major_version, instance->minor_version, instance->micro_version -1); + if_successful= libmemcached_util_version_check(memc, instance->major_version, instance->minor_version, (uint8_t)(instance->micro_version -1)); else if (instance->minor_version > 0) - if_successful= libmemcached_util_version_check(memc, instance->major_version, instance->minor_version - 1, instance->micro_version); + if_successful= libmemcached_util_version_check(memc, instance->major_version, (uint8_t)(instance->minor_version - 1), instance->micro_version); else if (instance->major_version > 0) - if_successful= libmemcached_util_version_check(memc, instance->major_version -1, instance->minor_version, instance->micro_version); + if_successful= libmemcached_util_version_check(memc, (uint8_t)(instance->major_version -1), instance->minor_version, instance->micro_version); test_true(if_successful == true); if (instance->micro_version > 0) - if_successful= libmemcached_util_version_check(memc, instance->major_version, instance->minor_version, instance->micro_version +1); + if_successful= libmemcached_util_version_check(memc, instance->major_version, instance->minor_version, (uint8_t)(instance->micro_version +1)); else if (instance->minor_version > 0) - if_successful= libmemcached_util_version_check(memc, instance->major_version, instance->minor_version +1, instance->micro_version); + if_successful= libmemcached_util_version_check(memc, instance->major_version, (uint8_t)(instance->minor_version +1), instance->micro_version); else if (instance->major_version > 0) - if_successful= libmemcached_util_version_check(memc, instance->major_version +1, instance->minor_version, instance->micro_version); + if_successful= libmemcached_util_version_check(memc, (uint8_t)(instance->major_version +1), instance->minor_version, instance->micro_version); test_true(if_successful == false);