mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +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;
|
fmt.prec -= 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(fmt.fmt == floating_format::hex)
|
||||||
|
{
|
||||||
|
fmt.prec = std::numeric_limits<floating_type>::max_digits10;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// width after decimal point
|
// width after decimal point
|
||||||
|
Reference in New Issue
Block a user