1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0025112: Undo of modification of the attribute TDataStd_IntPackedMap works wrong

Test case for issue #25112
This commit is contained in:
msv
2014-08-07 14:21:52 +04:00
committed by apv
parent 5402ccdda6
commit 6d1dc3e82c
3 changed files with 68 additions and 47 deletions

View File

@@ -1215,6 +1215,8 @@ Standard_Boolean TColStd_PackedMapOfInteger::IsSubset (const TColStd_PackedMapOf
// Find the corresponding block in the 2nd map
const TColStd_intMapNode * p2 =
aData2 [HashCode (aKeyInt, nBuckets2)];
if (!p2)
return Standard_False;
while (p2) {
if ( p2->IsEqual(aKeyInt) ) {
if ( p1->Data() & ~p2->Data() ) // at least one bit set in p1 is not set in p2