mirror of
https://github.com/nlohmann/json
synced 2025-01-15 11:40:05 +00:00
Apply suggestions from code review
Co-authored-by: Niels Lohmann <niels.lohmann@gmail.com>
This commit is contained in:
parent
64ff1cf90d
commit
9f45d314d5
@ -881,7 +881,7 @@ class serializer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
JSON_ASSERT(byte < 400);
|
JSON_ASSERT(byte < utf8d.size());
|
||||||
const std::uint8_t type = utf8d[byte];
|
const std::uint8_t type = utf8d[byte];
|
||||||
|
|
||||||
codep = (state != UTF8_ACCEPT)
|
codep = (state != UTF8_ACCEPT)
|
||||||
|
@ -16392,7 +16392,7 @@ class serializer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
JSON_ASSERT(byte < 400);
|
JSON_ASSERT(byte < utf8d.size());
|
||||||
const std::uint8_t type = utf8d[byte];
|
const std::uint8_t type = utf8d[byte];
|
||||||
|
|
||||||
codep = (state != UTF8_ACCEPT)
|
codep = (state != UTF8_ACCEPT)
|
||||||
|
Loading…
Reference in New Issue
Block a user