mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
fix: set prec as max in case of hex
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user