This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 3b005dbdf7bba10a99759d7fb9020dccf9ef5fcb
Author: jiangtao16 <[email protected]>
AuthorDate: Fri Aug 15 15:46:21 2025 +0800

    sched/wdog: Fix MISRA 2004 rule 10.1
    
    Fix MISRA 2004 rule 10.1 implicit type conversion
    
    Signed-off-by: jiangtao16 <[email protected]>
---
 include/nuttx/clock.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/nuttx/clock.h b/include/nuttx/clock.h
index 5ac210c8392..38583f878ea 100644
--- a/include/nuttx/clock.h
+++ b/include/nuttx/clock.h
@@ -397,7 +397,7 @@ extern "C"
  * current_tick + 1, which is not enough for at least 1 tick.
  */
 
-#define clock_delay2abstick(delay) (clock_systime_ticks() + (delay) + 1)
+#define clock_delay2abstick(delay) (clock_systime_ticks() + (delay) + 1u)
 
 /****************************************************************************
  * Name:  clock_timespec_add

Reply via email to