projects
/
awesomized
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
(from parent 1:
2f27520
)
Merge pull request #104 from remicollet/issue-32bit
author
Michael Wallner
<mike@php.net>
Thu, 24 Dec 2020 08:57:53 +0000
(09:57 +0100)
committer
GitHub
<noreply@github.com>
Thu, 24 Dec 2020 08:57:53 +0000
(09:57 +0100)
fix for 32-bit
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);
}