mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
[py] Cast to silence warning.
This commit is contained in:
parent
1d7961e912
commit
ce7d1f20f3
@ -218,7 +218,7 @@ static inline struct timespec secs_to_timespec(double const sec) {
|
||||
assert(sec >= 0);
|
||||
struct timespec const timespec = {
|
||||
.tv_sec = (time_t)sec,
|
||||
.tv_nsec = (long)((sec - (time_t)sec) * 1E+9) };
|
||||
.tv_nsec = (long)((sec - (double)(time_t)sec) * 1E+9) };
|
||||
return timespec;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user