mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix alignment
This commit is contained in:
parent
d0174d99c6
commit
0fdcdd267f
3 changed files with 7 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue