Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix bug found by chrome.

  • Loading branch information...
commit 185e2bad26cb4a92ceced9e0622fd5303319cfb1 1 parent 91e9149
@robey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/d16bunny/expression.coffee
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.