opal hack
This commit is contained in:
parent
26cf911a5c
commit
bf8e9e508b
@ -258,7 +258,11 @@ module Risc
|
|||||||
when :+
|
when :+
|
||||||
left + right
|
left + right
|
||||||
when :-
|
when :-
|
||||||
left - right
|
if( left.is_a?(String) or right.is_a?(String))
|
||||||
|
left == right ? 0 : 1 #for opal, and exception
|
||||||
|
else
|
||||||
|
left - right
|
||||||
|
end
|
||||||
when :>>
|
when :>>
|
||||||
left / (2**right)
|
left / (2**right)
|
||||||
when :<<
|
when :<<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user