summaryrefslogtreecommitdiff
path: root/yjit_asm.c
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2021-03-31 18:27:34 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:32 -0400
commitd03b7f77d45105bfe613b986bfddaaa6c1de6831 (patch)
tree813dfa739f9c9ff573268bc887dfd6e24afd605a /yjit_asm.c
parent9911f486a7d9902a900f91cfa607e8cacdda6494 (diff)
Fix GCC warnings
Mostly unused and uninitialized warnings here and there
Diffstat (limited to 'yjit_asm.c')
-rw-r--r--yjit_asm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit_asm.c b/yjit_asm.c
index 60873bb476..fc8472f077 100644
--- a/yjit_asm.c
+++ b/yjit_asm.c
@@ -175,7 +175,7 @@ void cb_align_pos(codeblock_t* cb, uint32_t multiple)
{
// Compute the pointer modulo the given alignment boundary
uint8_t* ptr = &cb->mem_block[cb->write_pos];
- uint32_t rem = ((uint32_t)ptr) % multiple;
+ uint32_t rem = ((uint32_t)(uintptr_t)ptr) % multiple;
// If the pointer is already aligned, stop
if (rem == 0)