зеркало из https://github.com/github/ruby.git
Fix condition in cb_align_pos which should return early when aligned
This commit is contained in:
Родитель
6704fa7122
Коммит
5559eae836
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче