Fix comparison bug

Unchanged high level test, ohh how great is testing
This commit is contained in:
2020-03-17 11:06:33 +02:00
parent f03f445652
commit fea98979e8
3 changed files with 2 additions and 3 deletions

View File

@ -32,7 +32,7 @@ module SlotMachine
left.op :- , right
end
if_minus false_label
if_not_zero( false_label ) if operator.to_s.length == 1
if_zero( false_label ) if operator.to_s.length == 1
add_code Risc::LoadConstant.new(to_s , Parfait.object_space.true_object, result)
branch merge_label
add_code false_label