diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-05-30 05:04:59 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-05-30 05:04:59 (GMT) |
commit | 638144305c6e91d2ecb74df8b2a3dff9126cc494 (patch) | |
tree | bad7a29045433299863a3b51871698ce656bcd11 | |
parent | 5e1b45dc2159721340b8fbf952b941749eb9ab3e (diff) | |
download | cpython-638144305c6e91d2ecb74df8b2a3dff9126cc494.zip cpython-638144305c6e91d2ecb74df8b2a3dff9126cc494.tar.gz cpython-638144305c6e91d2ecb74df8b2a3dff9126cc494.tar.bz2 |
dict_print(): Explicitly narrow the return value
from a (possibly) wider variable.
-rw-r--r-- | Objects/dictobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 9cfb672..410b967 100644 --- a/Objects/dictobject.c +++ b/Objects/dictobject.c @@ -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; } |