Skip to content

Commit

Permalink
Minor style fix in cast
Browse files Browse the repository at this point in the history
  • Loading branch information
KerfuffleV2 committed May 27, 2023
1 parent 96d2f54 commit e175150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ struct llama_server_context
{
embd_inp.push_back(prompt_tokens[i]);
if(new_prompt_len == 0) {
if(((int32_t)i) - 1 < n_past) {
if(int32_t(i) - 1 < n_past) {
processed_tokens.erase(processed_tokens.begin() + i, processed_tokens.end());
}
// Evaluate the new fragment prompt from the last token processed.
Expand Down

0 comments on commit e175150

Please sign in to comment.