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:
Emilio Cobos Álvarez 2022-12-07 12:13:53 +01:00
parent 13d8696801
commit 71998db820

View File

@ -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");