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; \