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 Jan 2, 2025
1 parent d961daf commit aa0b11c
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 @@ -364,7 +364,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);
}
}
else
Expand Down

0 comments on commit aa0b11c

Please sign in to comment.