fixed int/size_t comparison

This commit is contained in:
l3utterfly 2024-07-29 20:25:56 +09:00
parent 0229fc8255
commit 236da599d4

View file

@ -305,7 +305,7 @@ void llama_sample_dry_impl(llama_token_data_array * candidates, const llama_toke
auto match_length = pair.second;
// if the match length is greater than or equal to our allowed length in config, we apply penalities
if (match_length >= dry_allowed_length) {
if (match_length >= (size_t)dry_allowed_length) {
// find our next token in the candidates->data
for (size_t i = 0; i < candidates->size; ++i) {