Reviewers: Erik Corry, Description: Fixed compiler warning C4244 when compiling with the ARM simulator in Windows.
Please review this at http://codereview.chromium.org/13282 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/utils.h Index: src/utils.h =================================================================== --- src/utils.h (revision 929) +++ src/utils.h (working copy) @@ -540,7 +540,8 @@ #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 } --~--~---------~--~----~------------~-------~--~----~ v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev -~----------~----~----~----~------~----~------~--~---
