Skip to content

Commit f2e0c45

Browse files
committed
Fix warnings on x86 (32-bit).
1 parent 3e90fa5 commit f2e0c45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/pythonrun.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
# if defined(MS_WIN64)
3636
# define PRINT_TOTAL_REFS() fprintf(stderr, "[%Id refs]\n", _Py_RefTotal);
3737
# else /* ! MS_WIN64 */
38-
# define PRINT_TOTAL_REFS() fprintf(stderr, "[%ld refs]\n", _Py_RefTotal);
38+
# define PRINT_TOTAL_REFS() fprintf(stderr, "[%ld refs]\n", \
39+
Py_SAFE_DOWNCAST(_Py_RefTotal, Py_ssize_t, long));
3940
# endif /* MS_WIN64 */
4041
#endif
4142

0 commit comments

Comments
 (0)