Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Disabling a couple of asserts.
  • Loading branch information
lemire committed Jul 19, 2021
commit 4501aebee899551781f1e7358cd8bbfbde434223
8 changes: 6 additions & 2 deletions include/simdjson/generic/ondemand/json_iterator-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,16 @@ simdjson_really_inline uint32_t json_iterator::peek_length(int32_t delta) const
}

simdjson_really_inline const uint8_t *json_iterator::peek(token_position position) const noexcept {
assert_valid_position(position);
// todo: currently we require end-of-string buffering, but the following
// assert_valid_position should be turned on if/when we lift that condition.
// assert_valid_position(position);
return token.peek(position);
}

simdjson_really_inline uint32_t json_iterator::peek_length(token_position position) const noexcept {
assert_valid_position(position);
// todo: currently we require end-of-string buffering, but the following
// assert_valid_position should be turned on if/when we lift that condition.
// assert_valid_position(position);
return token.peek_length(position);
}

Expand Down