File tree 4 files changed +7
-7
lines changed
4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,13 @@ really_inline T tape_ref::next_tape_value() const noexcept {
83
83
really_inline uint32_t internal::tape_ref::get_string_length () const noexcept {
84
84
uint64_t string_buf_index = size_t (tape_value ());
85
85
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));
87
87
return len;
88
88
}
89
89
90
90
really_inline const char * internal::tape_ref::get_c_str () const noexcept {
91
91
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 )]);
93
93
}
94
94
95
95
inline 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! */
2
2
3
3
#include < iostream>
4
4
#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! */
2
2
/* begin file src/simdjson.cpp */
3
3
#include "simdjson.h"
4
4
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! */
2
2
/* begin file include/simdjson.h */
3
3
#ifndef SIMDJSON_H
4
4
#define SIMDJSON_H
@@ -7649,13 +7649,13 @@ really_inline T tape_ref::next_tape_value() const noexcept {
7649
7649
really_inline uint32_t internal::tape_ref::get_string_length () const noexcept {
7650
7650
uint64_t string_buf_index = size_t (tape_value ());
7651
7651
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));
7653
7653
return len;
7654
7654
}
7655
7655
7656
7656
really_inline const char * internal::tape_ref::get_c_str () const noexcept {
7657
7657
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 )]);
7659
7659
}
7660
7660
7661
7661
inline std::string_view internal::tape_ref::get_string_view () const noexcept {
You can’t perform that action at this time.
0 commit comments