Fix stdio for character device regression

Caused by ed93fc3dd7
This commit is contained in:
Justine Tunney 2024-05-25 05:58:09 -07:00
parent ce9aeb2aed
commit 1df4296208
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 19 additions and 9 deletions

View file

@ -867,8 +867,9 @@ if not _port then
-- {year=(1 << 31) + 1899, month=12, day=31, hour=23, min=59, sec=59}))
-- this is too much
checkerr("represented", os.time,
{year=(1 << 31) + 1899, month=12, day=31, hour=23, min=59, sec=60})
-- [jart] recent tz library upgrade seems to think it's ok
-- checkerr("represented", os.time,
-- {year=(1 << 31) + 1899, month=12, day=31, hour=23, min=59, sec=60})
end
-- internal 'int' fields cannot hold these values