mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
clock: fix clock_timespec_subtract() error when use TIME32
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user