Skip to content

Commit

Permalink
fix: explicit cast variable to prevent warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ihagad committed Dec 19, 2024
1 parent d8ee977 commit d7ebf8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cellular/recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<long unsigned int>(entry.session_idx));
}
SF_OSAL_printf("Set name to %s" __NL__, p_name_buf);
return 0;
Expand Down

0 comments on commit d7ebf8b

Please sign in to comment.