]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Windows compatibility
authorana <ana@opencascade.com>
Fri, 1 Apr 2016 15:48:46 +0000 (18:48 +0300)
committerana <ana@opencascade.com>
Fri, 1 Apr 2016 15:48:46 +0000 (18:48 +0300)
src/SMESHGUI/SMESHGUI.cxx
src/SMESH_I/SMESH_Gen_i.cxx

index a08aefbc49b69820bfbe032fbcdb31e3f4afd041..93b57979848335603cd9a6cbcd5f84f6a6cf85c0 100644 (file)
@@ -586,7 +586,7 @@ namespace
         "SMESH_OCTAHEDRA","SMESH_POLYEDRONS","SMESH_QUADRATIC_POLYEDRONS","SMESH_BALLS"
       };
       // is typeMsg complete? (compilation failure mains that enum SMDSAbs_EntityType changed)
-      int nbTypes = sizeof( typeMsg ) / sizeof( const char* );
+      const int nbTypes = sizeof( typeMsg ) / sizeof( const char* );
       int _assert[( nbTypes == SMESH::Entity_Last ) ? 1 : -1 ]; _assert[0]=1;
 
       QString andStr = " " + QObject::tr("SMESH_AND") + " ", comma(", ");
index 24cc1967e24e32ca730da5da7fea3fd68e668c1a..204466afefea833d8bb90b3bfd220ad675a54b84 100644 (file)
@@ -4896,7 +4896,7 @@ bool SMESH_Gen_i::LoadASCII( SALOMEDS::SComponent_ptr theComponent,
   _CORBA_Octet* buffer = new _CORBA_Octet[real_size];
   char tmp[3];
   tmp[2]='\0';
-  uint c = -1;
+  unsigned int c = -1;
   for ( int i = 0; i < real_size; i++ )
   {
     memcpy( &(tmp[0]), &(theStream[i*3+1]), 2 );