Reviewers: Michael Starzinger,
Message:
Committed patchset #1 manually as r17522.
Description:
Fix windows build after r17521.
[email protected]
Committed: https://code.google.com/p/v8/source/detail?r=17522
Please review this at https://codereview.chromium.org/61943002/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+1, -1 lines):
M src/utils.h
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index
062019af4604f0288e1ad2802baba825d75c28ef..3a0936eaa63cbeee5e858160eabbdab0bd6d03d9
100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1083,7 +1083,7 @@ class EnumSet {
// The strange typing in ASSERT is necessary to avoid stupid warnings,
see:
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43680
ASSERT(static_cast<int>(element) < static_cast<int>(sizeof(T) *
CHAR_BIT));
- return 1 << element;
+ return static_cast<T>(1) << element;
}
T bits_;
--
--
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.