Bug 996798 patch 2 - Make the ability to change nsWrapperCache::FlagsType more portable. r=bzbarsky

Without this, an Android build on our automation gives:
content/xul/content/src/nsXULElement.h:359:117: error: left shift count >= width of type [-Werror]
This commit is contained in:
L. David Baron 2014-07-16 20:10:10 -07:00
parent 5f3c0b45ec
commit 05fedabeee

View File

@ -79,7 +79,8 @@ struct DOMPointInit;
} // namespace dom
} // namespace mozilla
#define NODE_FLAG_BIT(n_) (1U << (WRAPPER_CACHE_FLAGS_BITS_USED + (n_)))
#define NODE_FLAG_BIT(n_) \
(nsWrapperCache::FlagsType(1U) << (WRAPPER_CACHE_FLAGS_BITS_USED + (n_)))
enum {
// This bit will be set if the node has a listener manager.