Skip to content

Commit

Permalink
Avoid -Wconversion warning for small significant types
Browse files Browse the repository at this point in the history
  • Loading branch information
Flamefire committed Dec 28, 2024
1 parent 6b76854 commit e3f0ec5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/charconv/detail/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ inline from_chars_result parser(const char* first, const char* last, bool& sign,

if (round)
{
significand += 1;
significand = static_cast<Unsigned_Integer>(significand + 1u);

Check warning on line 368 in include/boost/charconv/detail/parser.hpp

View check run for this annotation

Codecov / codecov/patch

include/boost/charconv/detail/parser.hpp#L368

Added line #L368 was not covered by tests
}
}
else
Expand Down

0 comments on commit e3f0ec5

Please sign in to comment.