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);
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);