Author: [EMAIL PROTECTED]
Date: Wed Oct 22 04:13:48 2008
New Revision: 552

Modified:
    branches/bleeding_edge/src/utils.h

Log:
Fix warning from Windows about loss of data in cast-less assignment.
Review URL: http://codereview.chromium.org/7865

Modified: branches/bleeding_edge/src/utils.h
==============================================================================
--- branches/bleeding_edge/src/utils.h  (original)
+++ branches/bleeding_edge/src/utils.h  Wed Oct 22 04:13:48 2008
@@ -448,7 +448,7 @@
  template <typename sourcechar, typename sinkchar>
  static inline void CopyChars(sinkchar* dest, const sourcechar* src, int  
chars) {
    while (chars--) {
-    *dest++ = *src++;
+    *dest++ = static_cast<sinkchar>(*src++);
    }
  }


--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to