Index: src/v8conversions.cc |
diff --git a/src/v8conversions.cc b/src/v8conversions.cc |
index bf175e50b5f4e566e133b980127d75436e128f99..c6755d593cec63db62003140a5af69a752cbe56b 100644 |
--- a/src/v8conversions.cc |
+++ b/src/v8conversions.cc |
@@ -84,7 +84,7 @@ double StringToDouble(UnicodeCache* unicode_cache, |
String* str, int flags, double empty_string_val) { |
StringShape shape(str); |
if (shape.IsSequentialAscii()) { |
- const char* begin = SeqAsciiString::cast(str)->GetChars(); |
+ const char* begin = SeqOneByteString::cast(str)->GetChars(); |
const char* end = begin + str->length(); |
return InternalStringToDouble(unicode_cache, begin, end, flags, |
empty_string_val); |
@@ -109,7 +109,7 @@ double StringToInt(UnicodeCache* unicode_cache, |
int radix) { |
StringShape shape(str); |
if (shape.IsSequentialAscii()) { |
- const char* begin = SeqAsciiString::cast(str)->GetChars(); |
+ const char* begin = SeqOneByteString::cast(str)->GetChars(); |
const char* end = begin + str->length(); |
return InternalStringToInt(unicode_cache, begin, end, radix); |
} else if (shape.IsSequentialTwoByte()) { |