Skip to content

Commit a58b9e5

Browse files
author
ochafik
committed
tiny fix: somehow llama_token being defined in an extern c makes it less than a c++ typedef
1 parent 2f2f0fa commit a58b9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/main/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ int main(int argc, char ** argv) {
759759

760760
// check for reverse prompt using special tokens
761761
llama_token last_token = common_sampler_last(smpl);
762-
if (std::find(antiprompt_token.begin(), antiprompt_token.end(), last_token) != antiprompt_token.end()) {
762+
if (std::find(antiprompt_token.begin(), antiprompt_token.end(), (int32_t) last_token) != antiprompt_token.end()) {
763763
if (params.interactive) {
764764
is_interacting = true;
765765
}

0 commit comments

Comments
 (0)