fix tests for indexed messages and frames

index_length changes index a bit
but from now on changes to layouts should push the index automatically
just have to set the index while calling now
This commit is contained in:
Torsten Ruger
2015-10-27 16:05:50 +02:00
parent 50029711ff
commit bd171d091a
6 changed files with 16 additions and 16 deletions

View File

@ -35,7 +35,7 @@ module Soml
val = process( arg)
raise "Not register #{val}" unless val.is_a?(Register::RegisterValue)
# which we load int the new_message at the argument's index (the one comes from c index)
set = Register.set_slot( statement , val , :new_message , i + 1 + Parfait::Message.offset)
set = Register.set_slot( statement , val , :new_message , Parfait::Message.get_indexed(i+1))
add_code set
end