]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
CORBA::long as C++ long type collision on 64-bit Linux corrected
authormaintenance team <salome-mnt@opencascade.com>
Thu, 28 Sep 2006 08:35:20 +0000 (08:35 +0000)
committermaintenance team <salome-mnt@opencascade.com>
Thu, 28 Sep 2006 08:35:20 +0000 (08:35 +0000)
src/SALOMEDS/SALOMEDS_SObject.cxx
src/SALOMEDS/SALOMEDS_Study.cxx

index 9affb5f385eca58b8b8868d6ae58ac497947788e..1e551766d0d36aa56d36dc25dc6beda9b9315a37 100644 (file)
@@ -62,7 +62,13 @@ SALOMEDS_SObject::SALOMEDS_SObject(SALOMEDS::SObject_ptr theSObject)
   long pid =  (long)getpid();
 #endif  
 
-  long addr = theSObject->GetLocalImpl(GetHostname().c_str(), pid, _isLocal);
+#if SIZEOF_LONG == 4
+  long addr = 
+#else
+  int addr =
+#endif  
+  theSObject->GetLocalImpl(GetHostname().c_str(), pid, _isLocal);
+
   if(_isLocal) {
     _local_impl = ((SALOMEDSImpl_SObject*)(addr));
     _corba_impl = SALOMEDS::SObject::_duplicate(theSObject);
index 210b5283346aab850ae30a766e4d7f56c010c364..01a0ca2d1fce2025440f2ea69ebb9eb244e0c039 100644 (file)
@@ -83,7 +83,13 @@ SALOMEDS_Study::SALOMEDS_Study(SALOMEDS::Study_ptr theStudy)
   long pid =  (long)getpid();
 #endif  
 
-  long addr = theStudy->GetLocalImpl(GetHostname().c_str(), pid, _isLocal);
+#if SIZEOF_LONG == 4
+  long addr = 
+#else
+  int addr =
+#endif
+    theStudy->GetLocalImpl(GetHostname().c_str(), pid, _isLocal);
+
   if(_isLocal) {
     _local_impl = ((SALOMEDSImpl_Study*)(addr));
     _corba_impl = SALOMEDS::Study::_duplicate(theStudy);