]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Windows compatibility
authorana <ana@opencascade.com>
Tue, 3 Feb 2015 16:14:19 +0000 (19:14 +0300)
committerana <ana@opencascade.com>
Tue, 3 Feb 2015 16:14:19 +0000 (19:14 +0300)
src/GEOM/GEOM_Function.cxx

index e96a3a52cc4c39a2d9793236015ea86d7811f48b..ab8e57fd6bc0172297297a54324fdd90ac54e971 100644 (file)
@@ -982,7 +982,13 @@ void* GEOM_Function::GetCallBackData()
   if(!aChild.FindAttribute(TDataStd_Comment::GetID(), aComment)) return NULL;
   TCollection_AsciiString string( aComment->Get() );
 
-  long long address = atoll( string.ToCString() );
+  long long address;
+#ifndef WIN32
+  address = atoll ( string.ToCString() );
+#else
+  address = _strtoi64 ( string.ToCString(), NULL, 10 );
+#endif
+
   return reinterpret_cast<void*> ( address );
 }