From 8912212d8e3ba2c0f9050ea1d499ef701487e967 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Thu, 27 Feb 2025 19:10:48 -0500 Subject: [PATCH] build: Fix 32-bit. --- src/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.c b/src/http.c index a240d84a7..d0622ebaf 100644 --- a/src/http.c +++ b/src/http.c @@ -994,7 +994,7 @@ void tf_http_request_websocket_send(tf_http_request_t* request, int op_code, con } else { - uint32_t high = (size >> 32) & 0xffffffff; + uint32_t high = ((uint64_t)size >> 32) & 0xffffffff; uint32_t low = (size >> 0) & 0xffffffff; copy[1] = 127; copy[2] = (high >> 24) & 0xff;