]> granicus.if.org Git - python/commitdiff
Fix warnings on x86 (32-bit).
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 6 Mar 2006 23:31:27 +0000 (23:31 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 6 Mar 2006 23:31:27 +0000 (23:31 +0000)
Python/pythonrun.c

index c4e387605c842fa5691fb0a125c5446dfa825a2a..38f9c11000ba5bcef52a9a5e9375d386e688316c 100644 (file)
@@ -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