1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-06-05 11:24:17 +03:00

Fixed broken compilation with clang/gcc

This commit is contained in:
dkulikov 2025-04-02 16:19:52 +01:00
parent 2d6e876392
commit d39110dda6
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ struct MergeSTEPEntities_CartesianPointHasher
{ {
return false; return false;
} }
for (Standard_Integer anIndex = 0; anIndex < aCoords1.size(); ++anIndex) for (size_t anIndex = 0; anIndex < aCoords1.size(); ++anIndex)
{ {
if (std::abs(aCoords1[anIndex] - aCoords2[anIndex]) > aTolerance) if (std::abs(aCoords1[anIndex] - aCoords2[anIndex]) > aTolerance)
{ {

View File

@ -161,7 +161,7 @@ template <typename ProcessedType, typename ProcessedTypeHasher>
void MergeSTEPEntities_EntityProcessor<ProcessedType, ProcessedTypeHasher>::Perform( void MergeSTEPEntities_EntityProcessor<ProcessedType, ProcessedTypeHasher>::Perform(
TColStd_MapOfTransient& theReplacedEntities) TColStd_MapOfTransient& theReplacedEntities)
{ {
for (DuplicateMap::Iterator anIter(myDuplicateMap); anIter.More(); anIter.Next()) for (typename DuplicateMap::Iterator anIter(myDuplicateMap); anIter.More(); anIter.Next())
{ {
const Handle(ProcessedType)& anEntity = anIter.Key(); const Handle(ProcessedType)& anEntity = anIter.Key();
const std::vector<Handle(ProcessedType)>& aDuplicates = anIter.Value(); const std::vector<Handle(ProcessedType)>& aDuplicates = anIter.Value();