]> SALOME platform Git repositories - modules/geom.git/blobdiff - src/GEOMClient/GEOM_Client.cxx
Salome HOME
Fix some compilation warnings
[modules/geom.git] / src / GEOMClient / GEOM_Client.cxx
index ba8711e4190cc3812f60cc01de178cdd91239960..bfe844b1404acf625ea5be1865c2f8c72f81a21a 100644 (file)
@@ -258,8 +258,8 @@ TopoDS_Shape GEOM_Client::GetShape( GEOM::GEOM_Gen_ptr geom, GEOM::GEOM_Object_p
     BRep_Builder B;
     TopoDS_Compound aCompound;
     B.MakeCompound(aCompound);
-    for (int i = 0; i < list->length(); i++) {
-      if (0 < list[i] && list[i] <= _mySubShapes[mainIOR].size()) {
+    for (size_t i = 0; i < list->length(); i++) {
+      if (0 < list[i] && list[i] <= (CORBA::Long)_mySubShapes[mainIOR].size()) {
         TopoDS_Shape aSubShape = _mySubShapes[mainIOR][list[i]-1];
         B.Add(aCompound, aSubShape);
       }