Removing a cast.

This commit is contained in:
Daniel Lemire 2020-06-26 19:06:39 -04:00
parent bb5ce007e6
commit 94e910586d
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ really_inline T tape_ref::next_tape_value() const noexcept {
really_inline uint32_t internal::tape_ref::get_string_length() const noexcept {
size_t string_buf_index = size_t(tape_value());
uint32_t len;
memcpy(&len, &doc->string_buf[size_t(string_buf_index)], sizeof(len));
memcpy(&len, &doc->string_buf[string_buf_index], sizeof(len));
return len;
}