]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
PAL13137: Some modifications to work on 64 bits architectures. Correct compilation... For_OCT_611
authorjfa <jfa@opencascade.com>
Fri, 11 Aug 2006 11:48:43 +0000 (11:48 +0000)
committerjfa <jfa@opencascade.com>
Fri, 11 Aug 2006 11:48:43 +0000 (11:48 +0000)
src/GraphBase/DataFlowBase_DataPort.cxx

index f8b92c2c2c699d52f30f575cdfa1c6b61e59ffa4..c60b7b282d21d39e03f8b9530074e0a46fe5598d 100644 (file)
@@ -386,7 +386,12 @@ void GraphBase::DataPort::SetValue( const CORBA::Any * aDataValue ) {
       }
       else if ( !strcmp( Type , "boolean" ) || !strcmp( Type , "char" ) ||
                 !strcmp( Type , "short" ) || !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
+#ifdef OMNI_LONG_IS_INT
+        long ll = (long ) obj ;
+        CORBA::Long l = (CORBA::Long ) ll ;
+#else
         CORBA::Long l = (CORBA::Long ) obj ;
+#endif
         *theValue <<= l ;
         *theValue >>= l;
 #if ValueTrace