From: Neal Norwitz Date: Thu, 8 Jul 2004 01:55:58 +0000 (+0000) Subject: Fix a couple of signed/unsigned comparison warnings X-Git-Tag: v2.4a1~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=739a8f86d6b4df7a36ec875660095ff16aa560d7;p=thirdparty%2FPython%2Fcpython.git Fix a couple of signed/unsigned comparison warnings --- diff --git a/Objects/floatobject.c b/Objects/floatobject.c index bbf56c6d75c4..774d2ead6a42 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -884,7 +884,7 @@ PyFloat_Fini(void) { PyFloatObject *p; PyFloatBlock *list, *next; - int i; + unsigned i; int bc, bf; /* block count, number of freed blocks */ int frem, fsum; /* remaining unfreed floats per block, total */ diff --git a/Python/codecs.c b/Python/codecs.c index 7b31003f333b..4b8d9839350f 100644 --- a/Python/codecs.c +++ b/Python/codecs.c @@ -804,7 +804,7 @@ static int _PyCodecRegistry_Init(void) PyInterpreterState *interp = PyThreadState_GET()->interp; PyObject *mod; - int i; + unsigned i; if (interp->codec_search_path != NULL) return 0;