]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021255: [CEA 466] compilation with gcc 4.6.0 without warnings
authoreap <eap@opencascade.com>
Tue, 3 May 2011 13:14:00 +0000 (13:14 +0000)
committereap <eap@opencascade.com>
Tue, 3 May 2011 13:14:00 +0000 (13:14 +0000)
-    sprintf( (char*)&(buffer[i*3]), "|%02x", (char*)(aStreamFile[i]) );
+    sprintf( (char*)&(buffer[i*3]), "|%02x", aStreamFile[i] );

src/SMESH_I/SMESH_Gen_i.cxx

index 018fadc5150d49675496286332789d73f4bd7e2f..c66fae3c2d90b1d078f8f12e91f6c8b73c2dd86c 100644 (file)
@@ -3492,7 +3492,7 @@ SALOMEDS::TMPFile* SMESH_Gen_i::SaveASCII( SALOMEDS::SComponent_ptr theComponent
   int size = aStreamFile.in().length();
   _CORBA_Octet* buffer = new _CORBA_Octet[size*3+1];
   for ( int i = 0; i < size; i++ )
-    sprintf( (char*)&(buffer[i*3]), "|%02x", (char*)(aStreamFile[i]) );
+    sprintf( (char*)&(buffer[i*3]), "|%02x", aStreamFile[i] );
 
   buffer[size * 3] = '\0';