зеркало из https://github.com/mozilla/pjs.git
Fix IRIX bustage
This commit is contained in:
Родитель
b6054b4a2d
Коммит
aece9e4647
|
@ -58,8 +58,10 @@ MBool RelationalExpr::compareResults(ExprResult* left, ExprResult* right) {
|
||||||
|
|
||||||
//-- handle case for just Left NodeSet or Both NodeSets
|
//-- handle case for just Left NodeSet or Both NodeSets
|
||||||
if (ltype == ExprResult::NODESET) {
|
if (ltype == ExprResult::NODESET) {
|
||||||
if (rtype == ExprResult::BOOLEAN)
|
if (rtype == ExprResult::BOOLEAN) {
|
||||||
return compareResults(&BooleanResult(left->booleanValue()), right);
|
BooleanResult leftBool(left->booleanValue());
|
||||||
|
return compareResults(&leftBool, right);
|
||||||
|
}
|
||||||
|
|
||||||
NodeSet* nodeSet = (NodeSet*)left;
|
NodeSet* nodeSet = (NodeSet*)left;
|
||||||
for ( int i = 0; i < nodeSet->size(); i++) {
|
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
|
//-- handle case for Just Right NodeSet
|
||||||
else if ( rtype == ExprResult::NODESET) {
|
else if ( rtype == ExprResult::NODESET) {
|
||||||
if (ltype == ExprResult::BOOLEAN)
|
if (ltype == ExprResult::BOOLEAN) {
|
||||||
return compareResults(left, &BooleanResult(right->booleanValue()));
|
BooleanResult rightBool(right->booleanValue());
|
||||||
|
return compareResults(left, &rightBool);
|
||||||
|
}
|
||||||
|
|
||||||
NodeSet* nodeSet = (NodeSet*)right;
|
NodeSet* nodeSet = (NodeSet*)right;
|
||||||
for ( int i = 0; i < nodeSet->size(); i++) {
|
for ( int i = 0; i < nodeSet->size(); i++) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче