aboutsummaryrefslogtreecommitdiff
path: root/ports/redis-plus-plus/fix-conversion.patch
diff options
context:
space:
mode:
authorJonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>2020-10-27 15:53:49 +0800
committerGitHub <noreply@github.com>2020-10-27 00:53:49 -0700
commitb9f003fb4930899b76710e58ae254c07377ce439 (patch)
tree56b0aee8260c4148b5842685d7db58d56aece318 /ports/redis-plus-plus/fix-conversion.patch
parentc5e82dd064664c1f7ff466e130311b239b10fb06 (diff)
downloadvcpkg-b9f003fb4930899b76710e58ae254c07377ce439.tar.gz
vcpkg-b9f003fb4930899b76710e58ae254c07377ce439.zip
[redis-plus-plus] Update to 1.2.1 and support Windows (#14180)
* [redis-plus-plus] Update to 1.2.1 and support Windows * [redis-plus-plus] Update to 1.2.1 and support Windows * [redis-plus-plus] Update to 1.2.1 and support Windows
Diffstat (limited to 'ports/redis-plus-plus/fix-conversion.patch')
-rw-r--r--ports/redis-plus-plus/fix-conversion.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/redis-plus-plus/fix-conversion.patch b/ports/redis-plus-plus/fix-conversion.patch
new file mode 100644
index 000000000..cc11d247a
--- /dev/null
+++ b/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 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);
+ }