projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
2f27520
)
fix for 32-bit
104/head
author
Remi Collet
<remi@remirepo.net>
Wed, 23 Dec 2020 15:32:00 +0000
(16:32 +0100)
committer
Remi Collet
<remi@remirepo.net>
Wed, 23 Dec 2020 15:32:00 +0000
(16:32 +0100)
test/lib/MemcachedCluster.cpp
patch
|
blob
|
history
diff --git
a/test/lib/MemcachedCluster.cpp
b/test/lib/MemcachedCluster.cpp
index a443360b52b9b3082dcfb1d102e39098098bd048..4b1aa2c5989a26f78c46af1487cb5dae3deac25e 100644
(file)
--- 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);
}