diff --git a/Python/pylifecycle.c b/Python/pylifecycle.c index 9b413c63187..a4d81725421 100644 --- a/Python/pylifecycle.c +++ b/Python/pylifecycle.c @@ -2167,7 +2167,7 @@ fatal_error_dump_runtime(FILE *stream, _PyRuntimeState *runtime) fprintf(stream, "Python runtime state: "); PyThreadState *finalizing = _PyRuntimeState_GetFinalizing(runtime); if (finalizing) { - fprintf(stream, "finalizing (tstate=%p)", finalizing); + fprintf(stream, "finalizing (tstate=%p)", (const void *)finalizing); } else if (runtime->initialized) { fprintf(stream, "initialized");