mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +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
|
|
@ -6435,7 +6435,8 @@ static int vec_static_blob_entriesColumn(sqlite3_vtab_cursor *cur,
|
||||||
|
|
||||||
sqlite3_result_blob(
|
sqlite3_result_blob(
|
||||||
context,
|
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);
|
p->blob->dimensions * sizeof(float), SQLITE_STATIC);
|
||||||
sqlite3_result_subtype(context, p->blob->element_type);
|
sqlite3_result_subtype(context, p->blob->element_type);
|
||||||
break;
|
break;
|
||||||
|
|
@ -6447,8 +6448,9 @@ static int vec_static_blob_entriesColumn(sqlite3_vtab_cursor *cur,
|
||||||
case VEC_STATIC_BLOB_ENTRIES_VECTOR: {
|
case VEC_STATIC_BLOB_ENTRIES_VECTOR: {
|
||||||
i32 rowid = ((i32 *)pCur->knn_data->rowids)[pCur->knn_data->current_idx];
|
i32 rowid = ((i32 *)pCur->knn_data->rowids)[pCur->knn_data->current_idx];
|
||||||
|
|
||||||
sqlite3_result_blob(
|
sqlite3_result_blob(context,
|
||||||
context, p->blob->p + (rowid * p->blob->dimensions * sizeof(float)),
|
((unsigned char *)p->blob->p) +
|
||||||
|
(rowid * p->blob->dimensions * sizeof(float)),
|
||||||
p->blob->dimensions * sizeof(float), SQLITE_STATIC);
|
p->blob->dimensions * sizeof(float), SQLITE_STATIC);
|
||||||
sqlite3_result_subtype(context, p->blob->element_type);
|
sqlite3_result_subtype(context, p->blob->element_type);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue