fix: "Implicit conversion loses integer precision" warnings (#3960)

This commit is contained in:
A Cœur
2022-10-26 00:14:42 +08:00
committed by GitHub
parent 14f2698cdc
commit 12e564096b
38 changed files with 284 additions and 281 deletions

View File

@@ -546,7 +546,7 @@ bool parseNumberSection(std::string_view str, number_range& range)
{
auto constexpr Delimiter = "-"sv;
auto const first = tr_parseNum<size_t>(str, &str);
auto const first = tr_parseNum<int>(str, &str);
if (!first)
{
return false;
@@ -564,7 +564,7 @@ bool parseNumberSection(std::string_view str, number_range& range)
}
str.remove_prefix(std::size(Delimiter));
auto const second = tr_parseNum<size_t>(str);
auto const second = tr_parseNum<int>(str);
if (!second)
{
return false;