mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-25 03:05:34 +00:00
Fix IRIX bustage
This commit is contained in:
parent
6255654f32
commit
6ad850987a
@ -58,8 +58,10 @@ MBool RelationalExpr::compareResults(ExprResult* left, ExprResult* right) {
|
||||
|
||||
//-- handle case for just Left NodeSet or Both NodeSets
|
||||
if (ltype == ExprResult::NODESET) {
|
||||
if (rtype == ExprResult::BOOLEAN)
|
||||
return compareResults(&BooleanResult(left->booleanValue()), right);
|
||||
if (rtype == ExprResult::BOOLEAN) {
|
||||
BooleanResult leftBool(left->booleanValue());
|
||||
return compareResults(&leftBool, right);
|
||||
}
|
||||
|
||||
NodeSet* nodeSet = (NodeSet*)left;
|
||||
for ( int i = 0; i < nodeSet->size(); i++) {
|
||||
@ -73,8 +75,10 @@ MBool RelationalExpr::compareResults(ExprResult* left, ExprResult* right) {
|
||||
}
|
||||
//-- handle case for Just Right NodeSet
|
||||
else if ( rtype == ExprResult::NODESET) {
|
||||
if (ltype == ExprResult::BOOLEAN)
|
||||
return compareResults(left, &BooleanResult(right->booleanValue()));
|
||||
if (ltype == ExprResult::BOOLEAN) {
|
||||
BooleanResult rightBool(right->booleanValue());
|
||||
return compareResults(left, &rightBool);
|
||||
}
|
||||
|
||||
NodeSet* nodeSet = (NodeSet*)right;
|
||||
for ( int i = 0; i < nodeSet->size(); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user