mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 00:36:56 +02:00
fix win cl.exe, void unknown size
This commit is contained in:
parent
f217cbf2bd
commit
23f0b75f9c
1 changed files with 6 additions and 4 deletions
10
sqlite-vec.c
10
sqlite-vec.c
|
|
@ -6435,7 +6435,8 @@ static int vec_static_blob_entriesColumn(sqlite3_vtab_cursor *cur,
|
|||
|
||||
sqlite3_result_blob(
|
||||
context,
|
||||
p->blob->p + (pCur->iRowid * p->blob->dimensions * sizeof(float)),
|
||||
((unsigned char *)p->blob->p) +
|
||||
(pCur->iRowid * p->blob->dimensions * sizeof(float)),
|
||||
p->blob->dimensions * sizeof(float), SQLITE_STATIC);
|
||||
sqlite3_result_subtype(context, p->blob->element_type);
|
||||
break;
|
||||
|
|
@ -6447,9 +6448,10 @@ static int vec_static_blob_entriesColumn(sqlite3_vtab_cursor *cur,
|
|||
case VEC_STATIC_BLOB_ENTRIES_VECTOR: {
|
||||
i32 rowid = ((i32 *)pCur->knn_data->rowids)[pCur->knn_data->current_idx];
|
||||
|
||||
sqlite3_result_blob(
|
||||
context, p->blob->p + (rowid * p->blob->dimensions * sizeof(float)),
|
||||
p->blob->dimensions * sizeof(float), SQLITE_STATIC);
|
||||
sqlite3_result_blob(context,
|
||||
((unsigned char *)p->blob->p) +
|
||||
(rowid * p->blob->dimensions * sizeof(float)),
|
||||
p->blob->dimensions * sizeof(float), SQLITE_STATIC);
|
||||
sqlite3_result_subtype(context, p->blob->element_type);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue