removed warning "comparison between signed and unsigned".
author"Vladimir N. Oleynik" <dzo@simtreas.ru>
Mon, 30 Jan 2006 13:47:19 +0000 (13:47 -0000)
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>
Mon, 30 Jan 2006 13:47:19 +0000 (13:47 -0000)
coreutils/cal.c

index 9368dccf92373b8be0928a57ffed1237323e790d..7d39a77adb16773c41d48eb452aebf8f9a7df7f3 100644 (file)
@@ -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;
        }