mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-29 08:00:33 +05:00
Windows compatibility
This commit is contained in:
parent
c8f0893cc3
commit
d82557916e
@ -586,7 +586,7 @@ namespace
|
|||||||
"SMESH_OCTAHEDRA","SMESH_POLYEDRONS","SMESH_QUADRATIC_POLYEDRONS","SMESH_BALLS"
|
"SMESH_OCTAHEDRA","SMESH_POLYEDRONS","SMESH_QUADRATIC_POLYEDRONS","SMESH_BALLS"
|
||||||
};
|
};
|
||||||
// is typeMsg complete? (compilation failure mains that enum SMDSAbs_EntityType changed)
|
// 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;
|
int _assert[( nbTypes == SMESH::Entity_Last ) ? 1 : -1 ]; _assert[0]=1;
|
||||||
|
|
||||||
QString andStr = " " + QObject::tr("SMESH_AND") + " ", comma(", ");
|
QString andStr = " " + QObject::tr("SMESH_AND") + " ", comma(", ");
|
||||||
|
@ -4896,7 +4896,7 @@ bool SMESH_Gen_i::LoadASCII( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
_CORBA_Octet* buffer = new _CORBA_Octet[real_size];
|
_CORBA_Octet* buffer = new _CORBA_Octet[real_size];
|
||||||
char tmp[3];
|
char tmp[3];
|
||||||
tmp[2]='\0';
|
tmp[2]='\0';
|
||||||
uint c = -1;
|
unsigned int c = -1;
|
||||||
for ( int i = 0; i < real_size; i++ )
|
for ( int i = 0; i < real_size; i++ )
|
||||||
{
|
{
|
||||||
memcpy( &(tmp[0]), &(theStream[i*3+1]), 2 );
|
memcpy( &(tmp[0]), &(theStream[i*3+1]), 2 );
|
||||||
|
Loading…
Reference in New Issue
Block a user