mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
clock: fix clock_timespec_subtract() error when use TIME32
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
fc5e37e57b
commit
8b4b66ef73
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ EXTERN volatile clock_t g_system_ticks;
|
|||
_nsec += NSEC_PER_SEC; \
|
||||
_sec--; \
|
||||
} \
|
||||
if ((int64_t)_sec < 0) \
|
||||
if ((sclock_t)_sec < 0) \
|
||||
{ \
|
||||
_sec = 0; \
|
||||
_nsec = 0; \
|
||||
|
|
Loading…
Reference in a new issue