aboutsummaryrefslogtreecommitdiff
path: root/ports/redis-plus-plus/fix-conversion.patch
blob: cc11d247abfb41fb64a408ef638bd0d6a8515d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/sw/redis++/shards.cpp b/src/sw/redis++/shards.cpp
index e06d2a7..273d039 100644
--- a/src/sw/redis++/shards.cpp
+++ b/src/sw/redis++/shards.cpp
@@ -39,7 +39,7 @@ std::pair<Slot, Node> RedirectionError::_parse_error(const std::string &msg) con
         auto host = msg.substr(space_pos + 1, colon_pos - space_pos - 1);
         auto port = std::stoi(msg.substr(colon_pos + 1));
 
-        return {slot, {host, port}};
+        return {static_cast<std::size_t>(slot), {host, port}};
     } catch (const std::exception &e) {
         throw ProtoError("Invalid ASK error message: " + msg);
     }