summaryrefslogtreecommitdiff
path: root/thirdparty/wslay/wslay_net.c
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-20 10:47:20 +0100
committerGitHub <noreply@github.com>2021-11-20 10:47:20 +0100
commitbf18965a5103694bdc53cd21cc0132f69de87549 (patch)
tree78632e49ff426ae2eb4eb69b7fe915334419a3a3 /thirdparty/wslay/wslay_net.c
parent58443f73fe52520e39ab306f9fdefec08ff587dc (diff)
parenta706ef3272e0fcd97398334da74b81d3a5ffa0a1 (diff)
Merge pull request #55126 from akien-mga/wslay-45d22583b
Diffstat (limited to 'thirdparty/wslay/wslay_net.c')
-rw-r--r--thirdparty/wslay/wslay_net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/thirdparty/wslay/wslay_net.c b/thirdparty/wslay/wslay_net.c
index d3867c21fb..e256158b4c 100644
--- a/thirdparty/wslay/wslay_net.c
+++ b/thirdparty/wslay/wslay_net.c
@@ -26,10 +26,9 @@
#ifndef WORDS_BIGENDIAN
-uint64_t wslay_byteswap64(uint64_t x)
-{
+uint64_t wslay_byteswap64(uint64_t x) {
uint64_t u = ntohl(x & 0xffffffffllu);
- uint64_t l = ntohl(x >> 32);
+ uint64_t l = ntohl((uint32_t)(x >> 32));
return (u << 32) | l;
}