mirror of
https://github.com/nlohmann/json.git
synced 2025-08-06 20:46:31 +08:00
Merge pull request #1435 from pboettch/warning-fix
🚨 fixed unused variable warning
This commit is contained in:
commit
dffae1082f
@ -630,7 +630,6 @@ class serializer
|
|||||||
|
|
||||||
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
|
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
|
||||||
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
|
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
|
||||||
const auto buffer_end = buffer_ptr;
|
|
||||||
while (abs_value >= 100)
|
while (abs_value >= 100)
|
||||||
{
|
{
|
||||||
const auto digits_index = static_cast<unsigned>((abs_value % 100));
|
const auto digits_index = static_cast<unsigned>((abs_value % 100));
|
||||||
|
@ -11520,7 +11520,6 @@ class serializer
|
|||||||
|
|
||||||
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
|
// Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu
|
||||||
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
|
// See: https://www.youtube.com/watch?v=o4-CwDo2zpg
|
||||||
const auto buffer_end = buffer_ptr;
|
|
||||||
while (abs_value >= 100)
|
while (abs_value >= 100)
|
||||||
{
|
{
|
||||||
const auto digits_index = static_cast<unsigned>((abs_value % 100));
|
const auto digits_index = static_cast<unsigned>((abs_value % 100));
|
||||||
|
Loading…
Reference in New Issue
Block a user