From: Neal Norwitz Date: Mon, 6 Mar 2006 23:31:27 +0000 (+0000) Subject: Fix warnings on x86 (32-bit). X-Git-Tag: v2.5a0~348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2e0c454926365086ce8965195e9f27819abb83e;p=python Fix warnings on x86 (32-bit). --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index c4e387605c..38f9c11000 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -35,7 +35,8 @@ # if defined(MS_WIN64) # define PRINT_TOTAL_REFS() fprintf(stderr, "[%Id refs]\n", _Py_RefTotal); # else /* ! MS_WIN64 */ -# define PRINT_TOTAL_REFS() fprintf(stderr, "[%ld refs]\n", _Py_RefTotal); +# define PRINT_TOTAL_REFS() fprintf(stderr, "[%ld refs]\n", \ + Py_SAFE_DOWNCAST(_Py_RefTotal, Py_ssize_t, long)); # endif /* MS_WIN64 */ #endif