Skip to content

Commit

Permalink
gha: windows dont typedef, fix linux eqp
Browse files Browse the repository at this point in the history
  • Loading branch information
asg017 committed Apr 20, 2024
1 parent df4d629 commit 0f08b94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions sqlite-vec.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ SQLITE_EXTENSION_INIT1
# define LONGDOUBLE_TYPE long double
#endif

#ifndef _WIN32
typedef u_int8_t uint8_t;
typedef u_int16_t uint16_t;
typedef u_int64_t uint64_t;
#endif

#ifndef UNUSED_PARAMETER
#define UNUSED_PARAMETER(X) (void)(X)
Expand Down
6 changes: 3 additions & 3 deletions tests/test-loadable.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,15 +616,15 @@ def test_smoke():
explain_query_plan(
"select * from vec_xyz where a match X'' and k = 10 order by distance"
)
== "SCAN vec_xyz VIRTUAL TABLE INDEX 0:knn:"
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:knn:"
)
assert (
explain_query_plan("select * from vec_xyz")
== "SCAN vec_xyz VIRTUAL TABLE INDEX 0:fullscan"
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 0:fullscan"
)
assert (
explain_query_plan("select * from vec_xyz where rowid = 4")
== "SCAN vec_xyz VIRTUAL TABLE INDEX 3:point"
== "SCAN (TABLE )?vec_xyz VIRTUAL TABLE INDEX 3:point"
)

db.execute("insert into vec_xyz(rowid, a) select 1, X'000000000000803f'")
Expand Down

0 comments on commit 0f08b94

Please sign in to comment.