← Commit list

676b15e06

"Vladimir N. Oleynik"
"Vladimir N. Oleynik"
2006-01-30
SUCCESS Duration: 28s

Subject

removed warning "comparison between signed and unsigned".

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/cal.c+4 -3
@@ -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;
}