Skip to content

Commit

Permalink
no inline, windows i64 fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Jun 28, 2024
1 parent a5525c9 commit 2eafd84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sqlite-vec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1727,7 +1727,7 @@ size_t vector_byte_size(enum VectorElementType element_type,
}
}

inline size_t vector_column_byte_size(struct VectorColumnDefinition column) {
size_t vector_column_byte_size(struct VectorColumnDefinition column) {
return vector_byte_size(column.element_type, column.dimensions);
}

Expand Down
9 changes: 5 additions & 4 deletions tests/test-loadable.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _f32(list):


def _i64(list):
return struct.pack("%sL" % len(list), *list)
return struct.pack("%sl" % len(list), *list)


def _int8(list):
Expand Down Expand Up @@ -1251,10 +1251,11 @@ def test_vec0_best_index():
with _raises("A LIMIT or 'k = ?' constraint is required on vec0 knn queries."):
db.execute("select * from t where aaa MATCH ?")

with _raises("Only LIMIT or 'k =?' can be provided, not both"):
db.execute("select * from t where aaa MATCH ? and k = 10 limit 20")
if SUPPORTS_VTAB_LIMIT:
with _raises("Only LIMIT or 'k =?' can be provided, not both"):
db.execute("select * from t where aaa MATCH ? and k = 10 limit 20")

with _raises(
with _raises(
"Only a single 'ORDER BY distance' clause is allowed on vec0 KNN queries"
):
db.execute(
Expand Down

0 comments on commit 2eafd84

Please sign in to comment.