🚨 fix compiler warnings #2049

This commit is contained in:
Niels Lohmann 2020-04-19 13:01:36 +02:00
parent be137609df
commit 4fb0795ec1
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
4 changed files with 7 additions and 9 deletions

View file

@ -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');
}