diff --git a/include/nuttx/clock.h b/include/nuttx/clock.h index c4f94e41388fc..61f8fbe21907f 100644 --- a/include/nuttx/clock.h +++ b/include/nuttx/clock.h @@ -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; \