forked from Bananymous/banan-os
LibC: Make time_t signed integer
Some port like python3 assumes this is the case
This commit is contained in:
@@ -299,7 +299,7 @@ namespace Kernel
|
||||
long ns_this_second = ticks_this_second * regs.counter_clk_period / FS_PER_NS;
|
||||
|
||||
return timespec {
|
||||
.tv_sec = seconds,
|
||||
.tv_sec = static_cast<time_t>(seconds),
|
||||
.tv_nsec = ns_this_second
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user