diff options
Diffstat (limited to 'include/json_html_serializer.hpp')
-rw-r--r-- | include/json_html_serializer.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/json_html_serializer.hpp b/include/json_html_serializer.hpp index 3efc224444..4969d27278 100644 --- a/include/json_html_serializer.hpp +++ b/include/json_html_serializer.hpp @@ -353,6 +353,7 @@ void dumpInteger(std::string& out, NumberType number) // jump to the end to generate the string from backward // so we later avoid reversing the result + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) bufferPtr += nChars; // Fast int2ascii implementation inspired by "Fastware" talk by Andrei @@ -384,6 +385,8 @@ inline void dumpfloat(std::string& out, double number, { std::array<char, 64> numberbuffer{{}}; char* begin = numberbuffer.data(); + + // NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic) ::nlohmann::detail::to_chars(begin, begin + numberbuffer.size(), number); out += begin; |