Permalink
Browse files

fix bug found by chrome.

  • Loading branch information...
robey committed Dec 15, 2014
1 parent 91e9149 commit 185e2bad26cb4a92ceced9e0622fd5303319cfb1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/d16bunny/expression.coffee
@@ -91,7 +91,7 @@ class Expression
e.toString = -> "(" + @left.toString() + " " + @binary + " " + @right.toString() + ")"
e.resolvable = (symtab={}) -> @left.resolvable(symtab) and @right.resolvable(symtab)
e.extractRegister = ->
- return null unless @binary in [ "+", "-" ]
+ return [ null, null ] unless @binary in [ "+", "-" ]
if @left.register?
expr = @right
if @binary == "-" then expr = Expression::Unary(expr.text, expr.pos, "-", expr)

0 comments on commit 185e2ba

Please sign in to comment.