Silence another VS warning

R=titzer@chromium.org
BUG=

Review URL: https://codereview.chromium.org/143973004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18712 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
rossberg@chromium.org 2014-01-21 14:41:48 +00:00
parent 928d71f83b
commit 80195df5d8
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ struct ZoneTypeConfig {
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));

View File

@ -141,7 +141,7 @@ struct ZoneRep {
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));