diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-11-20 10:47:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-20 10:47:20 +0100 |
commit | bf18965a5103694bdc53cd21cc0132f69de87549 (patch) | |
tree | 78632e49ff426ae2eb4eb69b7fe915334419a3a3 /thirdparty/wslay/wslay_net.c | |
parent | 58443f73fe52520e39ab306f9fdefec08ff587dc (diff) | |
parent | a706ef3272e0fcd97398334da74b81d3a5ffa0a1 (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.c | 5 |
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; } |