mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 07:13:20 +00:00
Bug 1803968 - Fix a bogus assert that was caught by GCC.
sizeof() is the wrong thing to test against there. And the 0 check is unneeded now that counter styles are unsigned. MANUAL PUSH: Trivial base toolchains fix CLOSED TREE
This commit is contained in:
parent
13d8696801
commit
71998db820
@ -1814,7 +1814,7 @@ CounterStyle* CounterStyleManager::ResolveCounterStyle(nsAtom* aName) {
|
||||
|
||||
/* static */
|
||||
CounterStyle* CounterStyleManager::GetBuiltinStyle(ListStyle aStyle) {
|
||||
MOZ_ASSERT(0 <= size_t(aStyle) && size_t(aStyle) < sizeof(gBuiltinStyleTable),
|
||||
MOZ_ASSERT(size_t(aStyle) < ArrayLength(gBuiltinStyleTable),
|
||||
"Require a valid builtin style constant");
|
||||
MOZ_ASSERT(!gBuiltinStyleTable[size_t(aStyle)].IsDependentStyle(),
|
||||
"Cannot get dependent builtin style");
|
||||
|
Loading…
Reference in New Issue
Block a user