mirror of
https://github.com/PDP-10/its.git
synced 2026-02-05 08:04:38 +00:00
Fix C library f2cal() date function to extend year range to 2155.
This commit is contained in:
@@ -74,7 +74,7 @@ int cal2u (cd) cal *cd;
|
||||
|
||||
f2cal (fdate, cd) cal *cd;
|
||||
|
||||
{cd->year = 1900 + ((fdate>>27) & 0177);
|
||||
{cd->year = 1900 + ((fdate>>27) & 0377);
|
||||
if ((cd->month = (fdate>>23) & 017) > 12) cd->month = 0;
|
||||
cd->day = (fdate>>18) & 037;
|
||||
fdate = (fdate & 0777777) >> 1;
|
||||
|
||||
Reference in New Issue
Block a user