Chromium Code Reviews| Index: runtime/lib/integers.dart |
| =================================================================== |
| --- runtime/lib/integers.dart (revision 25710) |
| +++ runtime/lib/integers.dart (working copy) |
| @@ -99,7 +99,7 @@ |
| final int EQUAL = 0, LESS = -1, GREATER = 1; |
| if (other is double) { |
| // TODO(floitsch): the following locals should be 'const'. |
| - int MAX_EXACT_INT_TO_DOUBLE = 9007199254740992; // 2^53. |
| + int MAX_EXACT_INT_TO_DOUBLE = 9007199254740991; // 2^53 - 1. |
|
Florian Schneider
2013/08/02 11:20:19
I don't understand why this was not correct: 2^53
|
| int MIN_EXACT_INT_TO_DOUBLE = -MAX_EXACT_INT_TO_DOUBLE; |
| double d = other; |
| if (d.isInfinite) { |