Don't filter use of TTInfo file section based on sizeof time_t.

The whole point of GncDateTime is to work around 32-bit time_t.
This commit is contained in:
John Ralls 2021-03-22 14:23:23 -07:00
parent b40589244c
commit 27435b1038

View File

@ -418,7 +418,7 @@ namespace IANAParser
auto isgmt_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.ttisgmtcnt)));
auto isstd_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.ttisstdcnt)));
auto leap_count = *(endian_swap(reinterpret_cast<uint32_t*>(tzh.leapcnt)));
if ((tzh.version == '2' || tzh.version == '3') && sizeof(time_t) == sizeof(int64_t))
if ((tzh.version == '2' || tzh.version == '3'))
{
fb_index = (sizeof(tzh) +
(sizeof(uint32_t) + sizeof(uint8_t)) * time_count +