Cast pointers to quiet -Wformat-pedantic warnings

This commit is contained in:
Andy Lester 2020-04-08 23:07:11 -05:00
parent 2b73f04e23
commit a07bbd296b
1 changed files with 1 additions and 1 deletions

View File

@ -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");