Revision: 18712
Author:   [email protected]
Date:     Tue Jan 21 14:41:48 2014 UTC
Log:      Silence another VS warning

[email protected]
BUG=

Review URL: https://codereview.chromium.org/143973004
http://code.google.com/p/v8/source/detail?r=18712

Modified:
 /branches/bleeding_edge/src/types.h
 /branches/bleeding_edge/test/cctest/test-types.cc

=======================================
--- /branches/bleeding_edge/src/types.h Tue Jan 21 14:14:12 2014 UTC
+++ /branches/bleeding_edge/src/types.h Tue Jan 21 14:41:48 2014 UTC
@@ -355,7 +355,7 @@

   static int as_bitset(Type* type) {
     ASSERT(is_bitset(type));
-    return reinterpret_cast<intptr_t>(type) >> 1;
+    return static_cast<int>(reinterpret_cast<intptr_t>(type) >> 1);
   }
   static Tagged* as_tagged(Type* type) {
     ASSERT(is_tagged(type));
=======================================
--- /branches/bleeding_edge/test/cctest/test-types.cc Tue Jan 21 14:14:12 2014 UTC +++ /branches/bleeding_edge/test/cctest/test-types.cc Tue Jan 21 14:41:48 2014 UTC
@@ -141,7 +141,7 @@
     return reinterpret_cast<ZoneList<void*>*>(t);
   }
   static int AsBitset(ZoneType* t) {
-    return reinterpret_cast<intptr_t>(t) >> 1;
+    return static_cast<int>(reinterpret_cast<intptr_t>(t) >> 1);
   }
   static Map* AsClass(ZoneType* t) {
     return *reinterpret_cast<Map**>(AsTagged(t)->at(1));

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to