mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 04:22:50 +02:00
time: Fixed signedness issue with time calculation, closes #522.
This commit is contained in:
parent
c71cd80bcf
commit
3fce0d49e2
@ -159,7 +159,7 @@ static Result _appletCmdNoInOutU32(Service* srv, u32 *out, u32 cmd_id) {
|
||||
}
|
||||
|
||||
static s64 _timeComputeSteadyClockTimePoint(const TimeStandardSteadyClockTimePointType *context) {
|
||||
return (context->base_time + armTicksToNs(armGetSystemTick())) / 1000000000L;
|
||||
return (context->base_time + (s64)armTicksToNs(armGetSystemTick())) / 1000000000L;
|
||||
}
|
||||
|
||||
Result timeGetStandardSteadyClockTimePoint(TimeSteadyClockTimePoint *out) {
|
||||
|
Loading…
Reference in New Issue
Block a user