Skip to content

Commit

Permalink
clock: fix clock_timespec_subtract() error when use TIME32
Browse files Browse the repository at this point in the history
Signed-off-by: ligd <liguiding1@xiaomi.com>
  • Loading branch information
GUIDINGLI committed Sep 9, 2024
1 parent b190a92 commit 62c1b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/nuttx/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 62c1b29

Please sign in to comment.