From c889773a15495b7c12da2367c88ba5687a73e06f Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 29 Oct 2012 13:36:13 +0000 Subject: [PATCH] IPAL 0051561: Hexotic algorithm fail Fix problem of Hexotic algo computation on 32bit platforms --- src/DriverGMF/DriverGMF_Write.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.2