diff --git a/build.rb b/build.rb index 19fa2db..ff724fc 100755 --- a/build.rb +++ b/build.rb @@ -49,7 +49,7 @@ rescue ParseError => e exit(1) end -def run_and_warn_on_failure(command, name) +def run_and_warn_on_failure(command) output = `#{command}` if $?.exitstatus != 0 puts diff --git a/compiler.rb b/compiler.rb index 02fddda..0315f7f 100644 --- a/compiler.rb +++ b/compiler.rb @@ -192,7 +192,7 @@ class Compiler def bit_expr(op, token) match(token) - if block_given? yield else term end + if block_given? then yield else term end asm.pop(EBX) asm.send(op, EAX, EBX) end