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 <[email protected]>
  • Loading branch information
GUIDINGLI authored and zyfeier committed Sep 19, 2024
1 parent e20dd33 commit ebde1f3
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 @@ -425,7 +425,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 ebde1f3

Please sign in to comment.