Fix usual signedness shenanigans 🥱

This commit is contained in:
Francesco Mazzoli
2024-01-29 16:05:19 +00:00
parent 9cf2931bc7
commit 2a326f7c5f
+2 -2
View File
@@ -46,8 +46,8 @@ struct Duration {
struct timespec timespec() const {
struct timespec ts;
ts.tv_sec = ns / 1'000'000'000ull;
ts.tv_nsec = ns % 1'000'000'000ull;
ts.tv_sec = ns / 1'000'000'000ll;
ts.tv_nsec = ns % 1'000'000'000ll;
return ts;
}