mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 21:31:20 +00:00
Pass significand_size by value
This commit is contained in:
parent
c4a3c2342a
commit
20e4ef8b4c
@ -1634,7 +1634,7 @@ inline auto get_significand_size(const dragonbox::decimal_fp<T>& fp) -> int {
|
|||||||
|
|
||||||
template <typename Char, typename OutputIt>
|
template <typename Char, typename OutputIt>
|
||||||
inline auto write_significand(OutputIt out, const char* significand,
|
inline auto write_significand(OutputIt out, const char* significand,
|
||||||
int& significand_size) -> OutputIt {
|
int significand_size) -> OutputIt {
|
||||||
return copy_str<Char>(significand, significand + significand_size, out);
|
return copy_str<Char>(significand, significand + significand_size, out);
|
||||||
}
|
}
|
||||||
template <typename Char, typename OutputIt, typename UInt>
|
template <typename Char, typename OutputIt, typename UInt>
|
||||||
|
Loading…
Reference in New Issue
Block a user