dict_print(): Explicitly narrow the return value

from a (possibly) wider variable.
This commit is contained in:
Tim Peters 2006-05-30 05:04:59 +00:00
parent 5e1b45dc21
commit 638144305c
1 changed files with 1 additions and 1 deletions

View File

@ -767,7 +767,7 @@ dict_print(register dictobject *mp, register FILE *fp, register int flags)
i = Py_ReprEnter((PyObject*)mp); i = Py_ReprEnter((PyObject*)mp);
if (i != 0) { if (i != 0) {
if (i < 0) if (i < 0)
return i; return (int)i;
fprintf(fp, "{...}"); fprintf(fp, "{...}");
return 0; return 0;
} }