structure equals fix

This commit is contained in:
Matej Sekoranja
2011-01-26 00:00:38 +01:00
parent 4f85a0c4a1
commit 62e0495c3d
3 changed files with 20 additions and 12 deletions

View File

@@ -1467,7 +1467,7 @@ static bool structureArrayEquals(PVStructureArray *a,PVStructureArray *b)
} else {
if(bArray[i]==0) return false;
}
if(aArray[i]!=bArray[i]) return false;
if(*aArray[i]!=*bArray[i]) return false;
}
return true;
}
@@ -1481,7 +1481,7 @@ static bool structureEquals(PVStructure *a,PVStructure *b)
PVFieldPtrArray aFields = a->getPVFields();
PVFieldPtrArray bFields = b->getPVFields();
for(int i=0; i<length; i++) {
if(aFields[i]!=bFields[i]) return false;
if(*aFields[i]!=*bFields[i]) return false;
}
return true;
}