Reviewers: titzer,
Description:
Silence another VS warning
[email protected]
BUG=
Please review this at https://codereview.chromium.org/143973004/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+2, -2 lines):
M src/types.h
M test/cctest/test-types.cc
Index: src/types.h
diff --git a/src/types.h b/src/types.h
index
7dcf6f6bdc0599b8590d7503bbdc5675e6a92bfc..6b3fba5c7d9e1f88ce4c080b5b7210cd34a99932
100644
--- a/src/types.h
+++ b/src/types.h
@@ -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));
Index: test/cctest/test-types.cc
diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc
index
a3de98513dc917eff31f752b63503b0ff11c9945..2f0390868ab953baee37398f208969b41ac840c0
100644
--- a/test/cctest/test-types.cc
+++ b/test/cctest/test-types.cc
@@ -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));
--
--
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.