From: vsr Date: Mon, 29 Oct 2012 13:36:13 +0000 (+0000) Subject: IPAL 0051561: Hexotic algorithm fail X-Git-Tag: V6_6_0b1~31 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c889773a15495b7c12da2367c88ba5687a73e06f;p=modules%2Fsmesh.git IPAL 0051561: Hexotic algorithm fail Fix problem of Hexotic algo computation on 32bit platforms --- diff --git a/src/DriverGMF/DriverGMF_Write.cxx b/src/DriverGMF/DriverGMF_Write.cxx index cdddd629d..3e7e6fd87 100644 --- a/src/DriverGMF/DriverGMF_Write.cxx +++ b/src/DriverGMF/DriverGMF_Write.cxx @@ -66,7 +66,7 @@ DriverGMF_Write::~DriverGMF_Write() Driver_Mesh::Status DriverGMF_Write::Perform() { - const int dim = 3, version = 3; + const int dim = 3, version = sizeof(long) == 4 ? 2 : 3; int meshID = GmfOpenMesh( myFile.c_str(), GmfWrite, version, dim ); if ( !meshID )