File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ really_inline T tape_ref::next_tape_value() const noexcept {
8383really_inline uint32_t internal::tape_ref::get_string_length () const noexcept {
8484 uint64_t string_buf_index = size_t (tape_value ());
8585 uint32_t len;
86- memcpy (&len, &doc->string_buf [string_buf_index], sizeof (len));
86+ memcpy (&len, &doc->string_buf [size_t ( string_buf_index) ], sizeof (len));
8787 return len;
8888}
8989
9090really_inline const char * internal::tape_ref::get_c_str () const noexcept {
9191 uint64_t string_buf_index = size_t (tape_value ());
92- return reinterpret_cast <const char *>(&doc->string_buf [string_buf_index + sizeof (uint32_t )]);
92+ return reinterpret_cast <const char *>(&doc->string_buf [size_t ( string_buf_index) + sizeof (uint32_t )]);
9393}
9494
9595inline std::string_view internal::tape_ref::get_string_view () const noexcept {
Original file line number Diff line number Diff line change 1- /* auto-generated on Thu Jun 25 16:43:19 PDT 2020. Do not edit! */
1+ /* auto-generated on Fri Jun 26 01:04:15 UTC 2020. Do not edit! */
22
33#include < iostream>
44#include " simdjson.h"
Original file line number Diff line number Diff line change 1- /* auto-generated on Thu Jun 25 16:43:19 PDT 2020. Do not edit! */
1+ /* auto-generated on Fri Jun 26 01:04:15 UTC 2020. Do not edit! */
22/* begin file src/simdjson.cpp */
33#include "simdjson.h"
44
Original file line number Diff line number Diff line change 1- /* auto-generated on Thu Jun 25 16:43:19 PDT 2020. Do not edit! */
1+ /* auto-generated on Fri Jun 26 01:04:15 UTC 2020. Do not edit! */
22/* begin file include/simdjson.h */
33#ifndef SIMDJSON_H
44#define SIMDJSON_H
@@ -7649,13 +7649,13 @@ really_inline T tape_ref::next_tape_value() const noexcept {
76497649really_inline uint32_t internal::tape_ref::get_string_length () const noexcept {
76507650 uint64_t string_buf_index = size_t (tape_value ());
76517651 uint32_t len;
7652- memcpy (&len, &doc->string_buf [string_buf_index], sizeof (len));
7652+ memcpy (&len, &doc->string_buf [size_t ( string_buf_index) ], sizeof (len));
76537653 return len;
76547654}
76557655
76567656really_inline const char * internal::tape_ref::get_c_str () const noexcept {
76577657 uint64_t string_buf_index = size_t (tape_value ());
7658- return reinterpret_cast <const char *>(&doc->string_buf [string_buf_index + sizeof (uint32_t )]);
7658+ return reinterpret_cast <const char *>(&doc->string_buf [size_t ( string_buf_index) + sizeof (uint32_t )]);
76597659}
76607660
76617661inline std::string_view internal::tape_ref::get_string_view () const noexcept {
You can’t perform that action at this time.
0 commit comments