From 02a9e8d886e9b8507d97ca5c5fc2623183f1361b Mon Sep 17 00:00:00 2001 From: dingusdev <52434309+dingusdev@users.noreply.github.com> Date: Fri, 15 Mar 2024 22:00:54 -0700 Subject: [PATCH] Partial fix for writing qwords --- memaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memaccess.h b/memaccess.h index e787fae..74ea86b 100644 --- a/memaccess.h +++ b/memaccess.h @@ -106,7 +106,7 @@ along with this program. If not, see . (addr)[1] = ((uint64_t)(val) >> 48) & 0xFF; \ (addr)[2] = ((uint64_t)(val) >> 40) & 0xFF; \ (addr)[3] = ((uint64_t)(val) >> 32) & 0xFF; \ - (addr)[4] = ((val) >> 24) & 0xFF; \ + (addr)[4] = ((uint64_t)(val) >> 24) & 0xFF; \ (addr)[5] = ((val) >> 16) & 0xFF; \ (addr)[6] = ((val) >> 8) & 0xFF; \ (addr)[7] = (val) & 0xFF; \