mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
partly replacement old-style-cast to c++ *_cast (#1403)
Co-authored-by: Tibbel <tibbel@ma-gi.de>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user