Commit 86df8fc2 authored by sgjesse@chromium.org's avatar sgjesse@chromium.org

Fixed compiler warning C4244 when compiling with the ARM simulator in Windows.

Review URL: http://codereview.chromium.org/13282

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@944 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent fa04fa8a
......@@ -540,7 +540,8 @@ static inline void Store16(byte* ptr, uint16_t value) {
#ifdef CAN_READ_UNALIGNED
*reinterpret_cast<uint16_t*>(ptr) = value;
#else
ptr[1] = value;
// Cast to avoid warning C4244 when compiling with Microsoft Visual C++.
ptr[1] = static_cast<byte>(value);
ptr[0] = value >> 8;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment