another opal hack
in opal 13 / 10 = 1.3 whereas in ruby its 1
This commit is contained in:
parent
c92814440f
commit
daffa0579e
@ -208,6 +208,8 @@ module Interpreter
|
|||||||
if( result.is_a? Bignum)
|
if( result.is_a? Bignum)
|
||||||
@flags[:overflow] = true
|
@flags[:overflow] = true
|
||||||
result = result % 2**62
|
result = result % 2**62
|
||||||
|
else
|
||||||
|
result = result.to_i
|
||||||
end
|
end
|
||||||
log.debug "#{@instruction} == #{result}(#{result.class}) (#{left}|#{right})"
|
log.debug "#{@instruction} == #{result}(#{result.class}) (#{left}|#{right})"
|
||||||
right = set_register(@instruction.left , result)
|
right = set_register(@instruction.left , result)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user