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
Removing two other asserts.
  • Loading branch information
lemire committed Jul 19, 2021
commit 2e688a2825b3574e4a536b09517cf978ff7938c5
6 changes: 4 additions & 2 deletions include/simdjson/generic/ondemand/json_iterator-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,14 @@ simdjson_really_inline void json_iterator::abandon() noexcept {
}

simdjson_really_inline const uint8_t *json_iterator::return_current_and_advance() noexcept {
assert_more_tokens();
// The following assert_more_tokens is currently disabled because rely on end-of-file buffering.
// assert_more_tokens();
return token.return_current_and_advance();
}

simdjson_really_inline const uint8_t *json_iterator::peek(int32_t delta) const noexcept {
assert_more_tokens(delta+1);
// The following assert_more_tokens is currently disabled because rely on end-of-file buffering.
// assert_more_tokens(delta+1);
return token.peek(delta);
}

Expand Down