Skip to content

Commit

Permalink
[Truffle] Fix passing object to object_ivar* primitives.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Sep 26, 2016
1 parent ea0c454 commit dde7f44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions truffle/src/main/ruby/core/truffle/cext.rb
Expand Up @@ -381,11 +381,11 @@ def rb_raise(object, name)
end

def rb_iv_get(object, name)
Truffle.invoke_primitive :object_ivar_get, name.to_sym
Truffle.invoke_primitive :object_ivar_get, object, name.to_sym
end

def rb_iv_set(object, name, value)
Truffle.invoke_primitive :object_ivar_set, name.to_sym, value
Truffle.invoke_primitive :object_ivar_set, object, name.to_sym, value
end

def rb_define_class_under(mod, name, superclass)
Expand Down

0 comments on commit dde7f44

Please sign in to comment.