just keep binary code payload at 13 for now

there is an extra in there at the last of the last, but ok
This commit is contained in:
Torsten Ruger
2018-03-26 14:37:55 +03:00
parent 231025389a
commit 1e21177b35
4 changed files with 17 additions and 13 deletions

View File

@ -160,7 +160,7 @@ module Risc
binary = method.binary
total_byte_length = method.cpu_instructions.total_byte_length
log.debug "Assembled code #{method.name} with length #{length}"
raise "length error #{binary.char_length} != #{total_byte_length}" if binary.char_length <= total_byte_length
raise "length error #{binary.total_byte_length} != #{total_byte_length}" if binary.total_byte_length <= total_byte_length
raise "length error #{length} != #{total_byte_length}" if total_byte_length != length
end