Commit 9df56431 authored by Tim Peters's avatar Tim Peters

dict_print(): Explicitly narrow the return value

from a (possibly) wider variable.
parent 5f3c4dfc
......@@ -767,7 +767,7 @@ dict_print(register dictobject *mp, register FILE *fp, register int flags)
i = Py_ReprEnter((PyObject*)mp);
if (i != 0) {
if (i < 0)
return i;
return (int)i;
fprintf(fp, "{...}");
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment