diff options
author | "Vladimir N. Oleynik" | 2006-01-30 13:47:19 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2006-01-30 13:47:19 +0000 |
commit | 676b15e06784eb35255e551e8925d0deca052345 (patch) | |
tree | f798907f50de9ebdff49d4067dd5acfd4b30e4b3 /coreutils | |
parent | cd473dd0c131db21972602f6d25bfcbc725fdd00 (diff) | |
download | busybox-676b15e06784eb35255e551e8925d0deca052345.zip busybox-676b15e06784eb35255e551e8925d0deca052345.tar.gz |
removed warning "comparison between signed and unsigned".
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cal.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index 9368dcc..7d39a77 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; } |