Skip to content

Commit

Permalink
fix: avoid taking next of end
Browse files Browse the repository at this point in the history
  • Loading branch information
ToruNiina committed Jun 16, 2024
1 parent 0ce5565 commit d037e26
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/toml11/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,10 @@ parse_floating(location& loc, const context<TC>& ctx)
fmt.prec -= 1;
}
}
else if(fmt.fmt == floating_format::hex)
{
fmt.prec = std::numeric_limits<floating_type>::max_digits10;
}
else
{
// width after decimal point
Expand Down

0 comments on commit d037e26

Please sign in to comment.