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)); |