Bug 840179: Add parens in asserted condition in txExecutionState.cpp, to fix gcc build warning. r=sicking

This commit is contained in:
Daniel Holbert 2013-02-19 23:20:16 -08:00
parent d9fcac071a
commit c8dfe53b38

View File

@ -208,8 +208,8 @@ txExecutionState::getVariable(int32_t aNamespace, nsIAtom* aLName,
return NS_ERROR_FAILURE;
}
NS_ASSERTION(var->mExpr && !var->mFirstInstruction ||
!var->mExpr && var->mFirstInstruction,
NS_ASSERTION((var->mExpr && !var->mFirstInstruction) ||
(!var->mExpr && var->mFirstInstruction),
"global variable should have either instruction or expression");
// Is this a stylesheet parameter that has a value?