commit | 638144305c6e91d2ecb74df8b2a3dff9126cc494 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Tue May 30 05:04:59 2006 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Tue May 30 05:04:59 2006 +0000 |
tree | bad7a29045433299863a3b51871698ce656bcd11 | |
parent | 5e1b45dc2159721340b8fbf952b941749eb9ab3e [diff] [blame] |
dict_print(): Explicitly narrow the return value from a (possibly) wider variable.
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 @@ i = Py_ReprEnter((PyObject*)mp); if (i != 0) { if (i < 0) - return i; + return (int)i; fprintf(fp, "{...}"); return 0; }