Skip to content

Commit 5f8c8e9

Browse files
committed
llama : fix compile warning
1 parent 131766d commit 5f8c8e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/llama.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19599,8 +19599,9 @@ float * llama_get_logits_ith(struct llama_context * ctx, int32_t i) {
1959919599
LLAMA_LOG_ERROR("%s: invalid logits id %d, reason: %s\n", __func__, i, err.what());
1960019600
#ifndef NDEBUG
1960119601
GGML_ABORT("fatal error");
19602-
#endif
19602+
#else
1960319603
return nullptr;
19604+
#endif
1960419605
}
1960519606
}
1960619607

@@ -19648,8 +19649,9 @@ float * llama_get_embeddings_ith(struct llama_context * ctx, int32_t i) {
1964819649
LLAMA_LOG_ERROR("%s: invalid embeddings id %d, reason: %s\n", __func__, i, err.what());
1964919650
#ifndef NDEBUG
1965019651
GGML_ABORT("fatal error");
19651-
#endif
19652+
#else
1965219653
return nullptr;
19654+
#endif
1965319655
}
1965419656
}
1965519657

0 commit comments

Comments
 (0)