From: Ivan Maidanski Date: Wed, 12 Oct 2016 06:17:01 +0000 (+0300) Subject: Eliminate 'cast to long from void*' compiler warning in test_atomic X-Git-Tag: v7.4.6~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f20d1cec73f5b09b786a9e0d51bb48288863be1;p=libatomic_ops Eliminate 'cast to long from void*' compiler warning in test_atomic * tests/run_parallel.h (AO_PTRDIFF_T): Define to ptrdiff_t for all targets. --- diff --git a/tests/run_parallel.h b/tests/run_parallel.h index 42110dc..f34b568 100644 --- a/tests/run_parallel.h +++ b/tests/run_parallel.h @@ -37,12 +37,8 @@ # define abort() _exit(-1) /* there is no abort() in WinCE */ #endif -#ifndef _WIN64 -# define AO_PTRDIFF_T long -#elif defined(__int64) -# define AO_PTRDIFF_T __int64 -#else -# define AO_PTRDIFF_T long long +#ifndef AO_PTRDIFF_T +# define AO_PTRDIFF_T ptrdiff_t #endif typedef void * (* thr_func)(void *);