fix copy-paste error
This commit is contained in:
parent
1eb0cf5c15
commit
6f72693c1c
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue