From 86df8fc27cda15068fe7e96221fe954fdd11747a Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Tue, 9 Dec 2008 09:43:16 +0000 Subject: [PATCH] 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 --- src/utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils.h b/src/utils.h index 34478bac1..4a47841cd 100644 --- a/src/utils.h +++ b/src/utils.h @@ -540,7 +540,8 @@ static inline void Store16(byte* ptr, uint16_t value) { #ifdef CAN_READ_UNALIGNED *reinterpret_cast(ptr) = value; #else - ptr[1] = value; + // Cast to avoid warning C4244 when compiling with Microsoft Visual C++. + ptr[1] = static_cast(value); ptr[0] = value >> 8; #endif } -- 2.34.1