summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-06 23:31:27 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-06 23:31:27 (GMT)
commitf2e0c454926365086ce8965195e9f27819abb83e (patch)
tree6c476bb6bbcbcb2feaa9c89b5c73d45e01255c73 /Python/pythonrun.c
parent3e90fa5940f7086f8617038524fe108bd58d627a (diff)
downloadcpython-f2e0c454926365086ce8965195e9f27819abb83e.zip
cpython-f2e0c454926365086ce8965195e9f27819abb83e.tar.gz
cpython-f2e0c454926365086ce8965195e9f27819abb83e.tar.bz2
Fix warnings on x86 (32-bit).
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index c4e3876..38f9c11 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