diff Python/pythonrun.c @ 36859:4f628ecc30cb legacy-trunk

Fix warnings on x86 (32-bit).
author Neal Norwitz <nnorwitz@gmail.com>
date Mon, 06 Mar 2006 23:31:27 +0000
parents 4284b3324ce2
children 4706b7a1256c
line wrap: on
line diff
--- a/Python/pythonrun.c	Mon Mar 06 23:07:34 2006 +0000
+++ b/Python/pythonrun.c	Mon Mar 06 23:31:27 2006 +0000
@@ -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