fix code listener logic bug

next's position was only updated initially
previous logic relied on pushing everything long rightly
but it wasn't right, and no harm in setting position twice,
as events only fire if there is real change
This commit is contained in:
Torsten Ruger
2018-07-02 23:03:00 +03:00
parent a1197fb70c
commit 56f2742e89
7 changed files with 31 additions and 25 deletions

View File

@ -69,7 +69,7 @@ module Risc
previous.position_listener(objekt) if previous
previous = position
at += objekt.padded_length
log.debug "Object #{objekt.class}:#{before.to_s(16)} len: #{(at - before).to_s(16)}"
log.debug "Object #{objekt.class}:0x#{before.to_s(16)} len: #{(at - before).to_s(16)}"
end
at
end