dict_print(): Explicitly narrow the return value
from a (possibly) wider variable.
This commit is contained in:
parent
5e1b45dc21
commit
638144305c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue