From 5fcecd3160626f7040b7dcc2d8f6010d1c264f97 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sun, 16 Mar 2003 23:52:23 +0000 Subject: [PATCH] Match signedness of loop counters with loop bounds. svn path=/trunk/yasm/; revision=870 --- libyasm/linemgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libyasm/linemgr.c b/libyasm/linemgr.c index df6beac2..1983ad6d 100644 --- a/libyasm/linemgr.c +++ b/libyasm/linemgr.c @@ -152,7 +152,7 @@ yasm_std_linemgr_cleanup(void) line_index_assoc_data_raw_head *adrh = &line_index_assoc_data_array[i]; if (adrh->delete_func && adrh->vector) { - int j; + unsigned int j; for (j=0; jsize; j++) { if (adrh->vector[j]) adrh->delete_func(adrh->vector[j]); @@ -191,7 +191,7 @@ yasm_std_linemgr_add_assoc_data(int type, /*@only@*/ void *data, &line_index_assoc_data_array[type>>1]; if (adrh->size == 0) { - int i; + unsigned int i; adrh->size = 4; adrh->vector = yasm_xmalloc(adrh->size*sizeof(void *)); @@ -201,7 +201,7 @@ yasm_std_linemgr_add_assoc_data(int type, /*@only@*/ void *data, } while (line_index > adrh->size) { - int i; + unsigned int i; /* allocate another size bins when full for 2x space */ adrh->vector = yasm_xrealloc(adrh->vector, -- 2.40.0