mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix condition in cb_align_pos which should return early when aligned
This commit is contained in:
parent
aba4047955
commit
4b80358e5d
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ void cb_align_pos(codeblock_t* cb, uint32_t multiple)
|
||||||
uint32_t rem = ((uint32_t)ptr) % multiple;
|
uint32_t rem = ((uint32_t)ptr) % multiple;
|
||||||
|
|
||||||
// If the pointer is already aligned, stop
|
// If the pointer is already aligned, stop
|
||||||
if (rem != 0)
|
if (rem == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Pad the pointer by the necessary amount to align it
|
// Pad the pointer by the necessary amount to align it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue