From: lrn@chromium.org Date: Thu, 9 Dec 2010 13:18:23 +0000 (+0000) Subject: Fix cast that fails on Win64. X-Git-Tag: upstream/4.7.83~20849 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9505f88f0cf6f8d4a062ae542dfda2218599386f;p=platform%2Fupstream%2Fv8.git 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 --- diff --git a/src/runtime.cc b/src/runtime.cc index 58cde3b..af40e98 100644 --- a/src/runtime.cc +++ b/src/runtime.cc @@ -4723,9 +4723,9 @@ static MaybeObject* QuoteJsonString(Vector characters) { } *(write_cursor++) = '"'; - int final_length = + int final_length = static_cast( write_cursor - reinterpret_cast( - new_string->address() + SeqAsciiString::kHeaderSize); + new_string->address() + SeqAsciiString::kHeaderSize)); Heap::new_space()->ShrinkStringAtAllocationBoundary(new_string, final_length); return new_string;