fix indexing when accessing locals or args

Was missing the offset of object variables
This commit is contained in:
Torsten Ruger
2015-10-22 11:02:46 +03:00
parent a44b88f570
commit ede0fe5f16
6 changed files with 16 additions and 35 deletions

View File

@ -76,7 +76,7 @@ module Parfait
def get_layout()
l = internal_object_get(LAYOUT_INDEX)
#puts "get layout for #{self.class} returns #{l.class}"
raise "No layout #{self.object_id.to_s(16)}:#{self.class} " unless l
raise "No layout #{self.object_id}:#{self.class} " unless l
return l
end