View | Details | Raw Unified | Return to bug 15820
Collapse All | Expand All

(-)src/getdate.c (-1 / +1 lines)
Lines 1484-1490 Link Here
1484
    Year += 1900;
1484
    Year += 1900;
1485
  DaysInMonth[1] = Year % 4 == 0 && (Year % 100 != 0 || Year % 400 == 0)
1485
  DaysInMonth[1] = Year % 4 == 0 && (Year % 100 != 0 || Year % 400 == 0)
1486
    ? 29 : 28;
1486
    ? 29 : 28;
1487
  if (Year < EPOCH || Year > 1999
1487
  if (Year < EPOCH
1488
      || Month < 1 || Month > 12
1488
      || Month < 1 || Month > 12
1489
      /* Lint fluff:  "conversion from long may lose accuracy" */
1489
      /* Lint fluff:  "conversion from long may lose accuracy" */
1490
      || Day < 1 || Day > DaysInMonth[(int)--Month])
1490
      || Day < 1 || Day > DaysInMonth[(int)--Month])

Return to bug 15820