summaryrefslogtreecommitdiff
path: root/yjit_asm.c
diff options
context:
space:
mode:
authorDylan Thacker-Smith <Dylan.Smith@shopify.com>2021-03-15 00:19:08 -0700
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:32 -0400
commit4b80358e5d0c83cd2925fd458f2c83136f804e5c (patch)
tree54ada086ff1768d3afeb2d1205505ddf869bd1a2 /yjit_asm.c
parentaba4047955b26a8408a92ad4b0739fe89f1a44fe (diff)
Fix condition in cb_align_pos which should return early when aligned
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 64b002c45a..60873bb476 100644
--- a/yjit_asm.c
+++ b/yjit_asm.c
@@ -178,7 +178,7 @@ void cb_align_pos(codeblock_t* cb, uint32_t multiple)
uint32_t rem = ((uint32_t)ptr) % multiple;
// If the pointer is already aligned, stop
- if (rem != 0)
+ if (rem == 0)
return;
// Pad the pointer by the necessary amount to align it