From: Tim Peters Date: Tue, 30 May 2006 05:04:59 +0000 (+0000) Subject: dict_print(): Explicitly narrow the return value X-Git-Tag: v2.5b1~341 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=638144305c6e91d2ecb74df8b2a3dff9126cc494;p=python dict_print(): Explicitly narrow the return value from a (possibly) wider variable. --- diff --git a/Objects/dictobject.c b/Objects/dictobject.c index 9cfb6722f1..410b9670e4 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; }