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
@ -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 New Issue
Block a user