1
0
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:
Lars Brinkhoff
2021-09-01 12:59:18 +02:00
parent 102fe484f8
commit bf9199b4ef

View File

@@ -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;