fix binary code offset when calling

in other words, remember the arm pipeline being 8
This commit is contained in:
Torsten Ruger
2018-05-29 17:03:20 +03:00
parent 4b34546c11
commit b81d9565de
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ module Arm
# But, for methods, this happens to be the size of the object header,
# so there it balances out, but not blocks
# have to use the code, not the method object for methods
arg = Risc::Position.get(@first) - Risc::Position.get(self) + 4
arg = Risc::Position.get(@first) - Risc::Position.get(self)
else
arg = @first
end