Skip to content

Commit b755d00

Browse files
committed
fix.
Signed-off-by: Yuchuan <[email protected]>
1 parent 350ebb2 commit b755d00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/grammar_compiler.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class GrammarMatcherForTokenMaskCache : public EarleyParser {
143143
bool is_root_rule,
144144
bool fill_reject_indices,
145145
int* last_rejected_range,
146-
const std::string* prev_token,
146+
const std::string*& prev_token,
147147
int* prev_matched_size
148148
);
149149

@@ -629,7 +629,7 @@ bool GrammarMatcherForTokenMaskCache::CheckTokensInInterval(
629629
bool is_root_rule,
630630
bool fill_reject_indices,
631631
int* last_rejected_range,
632-
const std::string* prev_token,
632+
const std::string*& prev_token,
633633
int* prev_matched_size
634634
) {
635635
const auto& sorted_decoded_vocab = tokenizer_info.GetSortedDecodedVocab();

0 commit comments

Comments
 (0)