From 6f72693c1c2103c1d78d791f8243047171485366 Mon Sep 17 00:00:00 2001 From: Cebtenzzre Date: Tue, 26 Sep 2023 13:07:05 -0400 Subject: [PATCH] fix copy-paste error --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 93080526c..fc9a4f535 100644 --- a/ggml.c +++ b/ggml.c @@ -20174,7 +20174,7 @@ const void * gguf_get_arr_data(const struct gguf_context * ctx, int i) { } const char * gguf_get_arr_str(const struct gguf_context * ctx, int key_id, int i) { - GGML_ASSERT(ctx->kv[i].type == GGUF_TYPE_ARRAY); + GGML_ASSERT(ctx->kv[key_id].type == GGUF_TYPE_ARRAY); struct gguf_kv * kv = &ctx->kv[key_id]; struct gguf_str * str = &((struct gguf_str *) kv->value.arr.data)[i]; return str->data;