Fix cast that fails on Win64.
Review URL: http://codereview.chromium.org/5712001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5956 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
69d6c0bb61
commit
9505f88f0c
@ -4723,9 +4723,9 @@ static MaybeObject* QuoteJsonString(Vector<const Char> characters) {
|
||||
}
|
||||
*(write_cursor++) = '"';
|
||||
|
||||
int final_length =
|
||||
int final_length = static_cast<int>(
|
||||
write_cursor - reinterpret_cast<Char*>(
|
||||
new_string->address() + SeqAsciiString::kHeaderSize);
|
||||
new_string->address() + SeqAsciiString::kHeaderSize));
|
||||
Heap::new_space()->ShrinkStringAtAllocationBoundary<StringType>(new_string,
|
||||
final_length);
|
||||
return new_string;
|
||||
|
Loading…
Reference in New Issue
Block a user