Fix windows build after r17521.
TBR=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/61943002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@17522 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
980739a29c
commit
80728e6f40
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user