| Index: runtime/lib/integers.cc
|
| diff --git a/runtime/lib/integers.cc b/runtime/lib/integers.cc
|
| index a1aa3bd3d3b1ea63ad0b5fa1957660fd8d2e4227..351cbbf6dd7cc39c353d256de23e79381449e8f0 100644
|
| --- a/runtime/lib/integers.cc
|
| +++ b/runtime/lib/integers.cc
|
| @@ -206,14 +206,9 @@ static RawInteger* ParseInteger(const String& value) {
|
| }
|
| }
|
|
|
| - Scanner scanner(value, Symbols::Empty());
|
| - const Scanner::GrowableTokenStream& tokens = scanner.GetStream();
|
| const String* int_string;
|
| bool is_positive;
|
| - if (Scanner::IsValidLiteral(tokens,
|
| - Token::kINTEGER,
|
| - &is_positive,
|
| - &int_string)) {
|
| + if (Scanner::IsValidInteger(value, &is_positive, &int_string)) {
|
| if (is_positive) {
|
| return Integer::New(*int_string);
|
| }
|
|
|