Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 739a8f8

Browse files
committed
Fix a couple of signed/unsigned comparison warnings
1 parent 4ded4b5 commit 739a8f8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Objects/floatobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ PyFloat_Fini(void)
884884
{
885885
PyFloatObject *p;
886886
PyFloatBlock *list, *next;
887-
int i;
887+
unsigned i;
888888
int bc, bf; /* block count, number of freed blocks */
889889
int frem, fsum; /* remaining unfreed floats per block, total */
890890

Python/codecs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ static int _PyCodecRegistry_Init(void)
804804

805805
PyInterpreterState *interp = PyThreadState_GET()->interp;
806806
PyObject *mod;
807-
int i;
807+
unsigned i;
808808

809809
if (interp->codec_search_path != NULL)
810810
return 0;

0 commit comments

Comments
 (0)