🚨 fix compiler warnings #2049

This commit is contained in:
Niels Lohmann committed 2020-04-19 13:01:36 +02:00
1 parent be137609df
commit 4fb0795ec1
4 files changed
+7 -9

No files matched your search

@@ -259,8 +259,7 @@ class serializer
{
dump_integer(*i);
o->write_character(',');
int index = i - val.m_value.binary->cbegin();
if (index % 16 == 0)
if (std::distance(val.m_value.binary->cbegin(), i) % 16 == 0)
{
o->write_character('\n');
}