dict_print(): So that Neal & I don't spend the rest of
our lives taking turns rewriting code that works ;-), get rid of casting illusions by declaring a new variable with the obvious type.
This commit is contained in:
parent
638144305c
commit
33f4a6a31a
|
@ -763,11 +763,12 @@ dict_print(register dictobject *mp, register FILE *fp, register int flags)
|
||||||
{
|
{
|
||||||
register Py_ssize_t i;
|
register Py_ssize_t i;
|
||||||
register Py_ssize_t any;
|
register Py_ssize_t any;
|
||||||
|
int status;
|
||||||
|
|
||||||
i = Py_ReprEnter((PyObject*)mp);
|
status = Py_ReprEnter((PyObject*)mp);
|
||||||
if (i != 0) {
|
if (status != 0) {
|
||||||
if (i < 0)
|
if (status < 0)
|
||||||
return (int)i;
|
return status;
|
||||||
fprintf(fp, "{...}");
|
fprintf(fp, "{...}");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue