From d7ebf8b04a521750cc5f02ba3485e3f2fd301f7e Mon Sep 17 00:00:00 2001 From: Iha Date: Thu, 19 Dec 2024 14:10:59 -0800 Subject: [PATCH] fix: explicit cast variable to prevent warning --- src/cellular/recorder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cellular/recorder.cpp b/src/cellular/recorder.cpp index 81848599..d89e5cdc 100644 --- a/src/cellular/recorder.cpp +++ b/src/cellular/recorder.cpp @@ -261,7 +261,8 @@ int Recorder::openLastSession(Deployment& session, char* p_name_buf) } else { - snprintf(p_name_buf, NAME_MAX, "%08lu", entry.session_idx); + snprintf( + p_name_buf, NAME_MAX, "%08lu", static_cast(entry.session_idx)); } SF_OSAL_printf("Set name to %s" __NL__, p_name_buf); return 0;