opal hack

This commit is contained in:
Torsten Ruger 2018-04-07 22:35:48 +03:00
parent 26cf911a5c
commit bf8e9e508b

View File

@ -258,7 +258,11 @@ module Risc
when :+
left + right
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 :>>
left / (2**right)
when :<<