Add CMake toolchains and update CI

This commit is contained in:
2025-11-09 14:50:45 -07:00
parent d85671e3c6
commit 4a7a6b9d72
18 changed files with 453 additions and 81 deletions

View File

@@ -101,8 +101,8 @@ LONGLONG timespecToFileTime(const timespec &ts) {
if (ticks < 0.0L) {
return 0;
}
if (ticks > static_cast<long double>(std::numeric_limits<LONGLONG>::max())) {
return std::numeric_limits<LONGLONG>::max();
if (ticks > static_cast<long double>(std::numeric_limits<long long>::max())) {
return std::numeric_limits<long long>::max();
}
return static_cast<LONGLONG>(ticks);
#endif