another opal hack

in opal 13 / 10 = 1.3 whereas in ruby its 1
This commit is contained in:
Torsten Ruger 2015-11-10 19:10:11 +02:00
parent c92814440f
commit daffa0579e

View File

@ -208,6 +208,8 @@ module Interpreter
if( result.is_a? Bignum)
@flags[:overflow] = true
result = result % 2**62
else
result = result.to_i
end
log.debug "#{@instruction} == #{result}(#{result.class}) (#{left}|#{right})"
right = set_register(@instruction.left , result)