diff --git a/src/GEOM/GEOM_Function.cxx b/src/GEOM/GEOM_Function.cxx index e96a3a52c..ab8e57fd6 100644 --- a/src/GEOM/GEOM_Function.cxx +++ b/src/GEOM/GEOM_Function.cxx @@ -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 ( address ); }