fixed a syntax error and argument error -- always test before commiting

This commit is contained in:
sjs 2009-10-20 18:25:38 -07:00
parent de366ea542
commit 63cf421501
2 changed files with 2 additions and 2 deletions

View file

@ -49,7 +49,7 @@ rescue ParseError => e
exit(1) exit(1)
end end
def run_and_warn_on_failure(command, name) def run_and_warn_on_failure(command)
output = `#{command}` output = `#{command}`
if $?.exitstatus != 0 if $?.exitstatus != 0
puts puts

View file

@ -192,7 +192,7 @@ class Compiler
def bit_expr(op, token) def bit_expr(op, token)
match(token) match(token)
if block_given? yield else term end if block_given? then yield else term end
asm.pop(EBX) asm.pop(EBX)
asm.send(op, EAX, EBX) asm.send(op, EAX, EBX)
end end