Fix Clang warning about tautological compare.
BUG=151927 R=hans@chromium.org Patch from Hans Wennborg <hans@chromium.org>. Review URL: https://chromiumcodereview.appspot.com/10985043 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12621 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d6853c3697
commit
944f933332
@ -974,7 +974,7 @@ class EnumSet {
|
||||
T Mask(E element) const {
|
||||
// The strange typing in ASSERT is necessary to avoid stupid warnings, see:
|
||||
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43680
|
||||
ASSERT(element < static_cast<int>(sizeof(T) * CHAR_BIT));
|
||||
ASSERT(static_cast<int>(element) < static_cast<int>(sizeof(T) * CHAR_BIT));
|
||||
return 1 << element;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user