word length fixes

This commit is contained in:
Torsten Ruger
2015-06-06 18:46:53 +02:00
parent 1c29fcfd43
commit 13ab029cc5
5 changed files with 12 additions and 12 deletions

View File

@ -90,7 +90,7 @@ module Parfait
end
def word_length
padded_words( get_layout().get_length() + 2 )
padded_words( get_layout().get_length() )
end
# Object

View File

@ -129,7 +129,7 @@ module Parfait
class_for(MoveInstruction).new(value , self , :opcode => :mov)
end
def word_length
(string.length+1) / 4
padded self.length + 1
end
end
end