diff options
Diffstat (limited to 'vcpkg/ports/redis-plus-plus/fix-conversion.patch')
| -rw-r--r-- | vcpkg/ports/redis-plus-plus/fix-conversion.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vcpkg/ports/redis-plus-plus/fix-conversion.patch b/vcpkg/ports/redis-plus-plus/fix-conversion.patch new file mode 100644 index 0000000..088e7fd --- /dev/null +++ b/vcpkg/ports/redis-plus-plus/fix-conversion.patch @@ -0,0 +1,13 @@ +diff --git a/src/sw/redis++/shards.cpp b/src/sw/redis++/shards.cpp
+index fc58eea..ea57266 100644
+--- a/src/sw/redis++/shards.cpp
++++ b/src/sw/redis++/shards.cpp
+@@ -42,7 +42,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 &) {
+ throw ProtoError("invalid redirection error message: " + msg);
+ }
|