1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fix alignment

This commit is contained in:
Aaron Patterson 2021-07-13 16:04:56 -07:00 committed by Alan Wu
parent d0174d99c6
commit 0fdcdd267f
3 changed files with 7 additions and 9 deletions

View file

@ -95,9 +95,13 @@ void print_str(codeblock_t* cb, const char* str)
cb_write_byte(cb, (uint8_t)str[i]);
cb_write_byte(cb, 0);
push(cb, RSP); // Alignment
// Call the print function
mov(cb, RAX, const_ptr_opnd((void*)&print_str_cfun));
call(cb, RAX);
pop(cb, RSP); // Alignment
pop_regs(cb);
}