Author: [EMAIL PROTECTED]
Date: Tue Dec 9 01:43:16 2008
New Revision: 944
Modified:
branches/bleeding_edge/src/utils.h
Log:
Fixed compiler warning C4244 when compiling with the ARM simulator in
Windows.
Review URL: http://codereview.chromium.org/13282
Modified: branches/bleeding_edge/src/utils.h
==============================================================================
--- branches/bleeding_edge/src/utils.h (original)
+++ branches/bleeding_edge/src/utils.h Tue Dec 9 01:43:16 2008
@@ -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
-~----------~----~----~----~------~----~------~--~---