diff --git a/include/services/daal_atomic_int.h b/include/services/daal_atomic_int.h index 4db3644f9a5..b1bbfd5a850 100644 --- a/include/services/daal_atomic_int.h +++ b/include/services/daal_atomic_int.h @@ -116,12 +116,12 @@ class DAAL_EXPORT Atomic #if defined(_WINDOWS) template -inline int Atomic::inc() +inline dataType Atomic::inc() { return _InterlockedExchangeAdd((long *)&my_storage, 1); } template -inline int Atomic::dec() +inline dataType Atomic::dec() { return _InterlockedExchangeAdd((long *)&my_storage, -1); }