From: Remi Collet Date: Wed, 23 Dec 2020 15:32:00 +0000 (+0100) Subject: fix for 32-bit X-Git-Tag: 1.1.0-beta2~13^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=refs%2Fpull%2F104%2Fhead;p=m6w6%2Flibmemcached fix for 32-bit --- diff --git a/test/lib/MemcachedCluster.cpp b/test/lib/MemcachedCluster.cpp index a443360b..4b1aa2c5 100644 --- a/test/lib/MemcachedCluster.cpp +++ b/test/lib/MemcachedCluster.cpp @@ -143,6 +143,6 @@ void MemcachedCluster::enableReplication() { void MemcachedCluster::killOneServer() const { const auto &servers = cluster.getServers(); - const auto &victim = servers[random_num(0UL, servers.size() - 1)]; + const auto &victim = servers[random_num((size_t)0, servers.size() - 1)]; ::kill(victim.getPid(), SIGKILL); }