Skip to content

Commit 0b7ed00

Browse files
authored
Merge pull request #109 from baba-dev/codex/fix-snprintf-formatting-issues
fix(integration): cast rounded value for snprintf
2 parents 04924bc + 9b003b1 commit 0b7ed00

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

custom/integration/weather_formatter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ namespace
190190
if (unit.empty())
191191
{
192192
char buffer[WEATHER_FORMATTER_MAX_VALUE_LEN];
193-
std::snprintf(buffer, sizeof(buffer), "%d", round_temperature(converted));
193+
std::snprintf(
194+
buffer, sizeof(buffer), "%d", static_cast<int>(round_temperature(converted)));
194195
return std::string(buffer);
195196
}
196197

0 commit comments

Comments
 (0)