mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-01-19 05:20:07 +00:00
fix: set prec as max in case of hex
This commit is contained in:
parent
6533454bc6
commit
8326709fae
@ -610,6 +610,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
|
||||
|
Loading…
Reference in New Issue
Block a user