Skip to content

Commit

Permalink
fixed files form Closure #38
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent fd965da commit 8d70793
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void addNumber(double x) {
// x--4 (which is a syntax error).
char prev = getLastChar();
boolean negativeZero = isNegativeZero(x);
if (x < 0 && prev == '-') {
if ((x < 0 || negativeZero) && prev == '-') {
add(" ");
}

Expand Down

0 comments on commit 8d70793

Please sign in to comment.