Skip to content

Commit

Permalink
Make implicit cast explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 29, 2024
1 parent 83c954c commit d1db781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/abstractcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ quint32 AbstractCommand::parseNumber(const QString &value, const QString &unit,
if (!ratio.isValid()) {
for (ratio = makeRatio<R>(); DOKIT_RESULT(dbl) < sensibleMinimum; ratio.num *= 1000);
}
return std::llround(DOKIT_RESULT(dbl));
return static_cast<quint32>(std::llround(DOKIT_RESULT(dbl)));
}
#undef DOKIT_RESULT
return 0; // Failed to parse as either integer, or float.
Expand Down

0 comments on commit d1db781

Please sign in to comment.