aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2006-01-30 13:47:19 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2006-01-30 13:47:19 +0000
commit676b15e06784eb35255e551e8925d0deca052345 (patch)
treef798907f50de9ebdff49d4067dd5acfd4b30e4b3
parentcd473dd0c131db21972602f6d25bfcbc725fdd00 (diff)
downloadbusybox-w32-676b15e06784eb35255e551e8925d0deca052345.tar.gz
busybox-w32-676b15e06784eb35255e551e8925d0deca052345.tar.bz2
busybox-w32-676b15e06784eb35255e551e8925d0deca052345.zip
removed warning "comparison between signed and unsigned".
-rw-r--r--coreutils/cal.c7
1 files changed, 4 insertions, 3 deletions
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)
231 memset(days, SPACE, MAXDAYS * sizeof(int)); 231 memset(days, SPACE, MAXDAYS * sizeof(int));
232 232
233 if ((month == 9) && (year == 1752)) { 233 if ((month == 9) && (year == 1752)) {
234 size_t oday = 0;
235
234 j_offset = julian * 244; 236 j_offset = julian * 244;
235 i = 0;
236 do { 237 do {
237 days[i+2] = sep1752[i] + j_offset; 238 days[oday+2] = sep1752[oday] + j_offset;
238 } while (++i < sizeof(sep1752)); 239 } while (++oday < sizeof(sep1752));
239 240
240 return; 241 return;
241 } 242 }