diff --git a/src/cluster.cpp b/src/cluster.cpp index fd9367e8a..ec9ca06f9 100644 --- a/src/cluster.cpp +++ b/src/cluster.cpp @@ -4216,7 +4216,7 @@ void clusterReplyMultiBulkSlots(client *c) { /* If slot exists in output map, add to it's list. * else, create a new output map for this slot */ - if (start == j-1) { + if (start == (int)j-1) { addReplyLongLong(c, start); /* only one slot; low==high */ addReplyLongLong(c, start); } else {