Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Unified Diff: src/utils.h

Issue 13282: Fixed compiler warning C4244 when compiling with the ARM simulator in Windows... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698