partly replacement old-style-cast to c++ *_cast (#1403)

Co-authored-by: Tibbel <tibbel@ma-gi.de>
This commit is contained in:
Tibbel
2021-01-27 19:33:48 +01:00
committed by GitHub
parent c96ff018fe
commit 5613d30e97
21 changed files with 49 additions and 49 deletions
+2 -2
View File
@@ -247,7 +247,7 @@ simdjson_warn_unused error_code implementation::minify(const uint8_t *buf, size_
// credit: based on code from Google Fuchsia (Apache Licensed)
simdjson_warn_unused bool implementation::validate_utf8(const char *buf, size_t len) const noexcept {
const uint8_t *data = (const uint8_t *)buf;
const uint8_t *data = reinterpret_cast<const uint8_t *>(buf);
uint64_t pos = 0;
uint32_t code_point = 0;
while (pos < len) {
@@ -336,4 +336,4 @@ simdjson_warn_unused error_code dom_parser_implementation::parse(const uint8_t *
} // namespace SIMDJSON_IMPLEMENTATION
} // namespace simdjson
#include "simdjson/fallback/end.h"
#include "simdjson/fallback/end.h"