From: "Vladimir N. Oleynik" Date: Mon, 30 Jan 2006 13:47:19 +0000 (-0000) Subject: removed warning "comparison between signed and unsigned". X-Git-Tag: 1_1_0~286 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=676b15e06784eb35255e551e8925d0deca052345;p=oweals%2Fbusybox.git removed warning "comparison between signed and unsigned". --- diff --git a/coreutils/cal.c b/coreutils/cal.c index 9368dccf9..7d39a77ad 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c @@ -231,11 +231,12 @@ static void day_array(int month, int year, int *days) memset(days, SPACE, MAXDAYS * sizeof(int)); if ((month == 9) && (year == 1752)) { + size_t oday = 0; + j_offset = julian * 244; - i = 0; do { - days[i+2] = sep1752[i] + j_offset; - } while (++i < sizeof(sep1752)); + days[oday+2] = sep1752[oday] + j_offset; + } while (++oday < sizeof(sep1752)); return; }