gridcf / gct

Grid Community Toolkit
Apache License 2.0
46 stars 30 forks source link

64 bit time_t #223

Closed ellert closed 4 months ago

ellert commented 6 months ago

Debian recently migrated to using a 64 bit time_t on most of their 32 bit architectures. This leads to issues where a time_t variable is used in printf or sscanf. This PR addresses those issues (and a few cases with size_t vs. long that I found when checking logs on 32 bit).

ellert commented 5 months ago

This took a few iterations to find all corner cases, but I think it is complete now. At least there are no more compiler warnings related to the change, and the tests succeed on all debian architectures for all packages.