diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 410b9670e4b..d4cd925b8b8 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -763,11 +763,12 @@ dict_print(register dictobject *mp, register FILE *fp, register int flags) { register Py_ssize_t i; register Py_ssize_t any; + int status; - i = Py_ReprEnter((PyObject*)mp); - if (i != 0) { - if (i < 0) - return (int)i; + status = Py_ReprEnter((PyObject*)mp); + if (status != 0) { + if (status < 0) + return status; fprintf(fp, "{...}"); return 0; }