clock: fix clock_timespec_subtract() error when use TIME32

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd 2024-09-06 22:28:22 +08:00 committed by Xiang Xiao
parent fc5e37e57b
commit 8b4b66ef73

View file

@ -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; \