diff --git a/README.md b/README.md index a108520..8e44c1a 100644 --- a/README.md +++ b/README.md @@ -803,6 +803,7 @@ Raku | [pgvector-raku](https://github.com/pgvector/pgvector-raku) Ruby | [pgvector-ruby](https://github.com/pgvector/pgvector-ruby), [Neighbor](https://github.com/ankane/neighbor) Rust | [pgvector-rust](https://github.com/pgvector/pgvector-rust) Swift | [pgvector-swift](https://github.com/pgvector/pgvector-swift) +Tcl | [pgvector-tcl](https://github.com/pgvector/pgvector-tcl) Zig | [pgvector-zig](https://github.com/pgvector/pgvector-zig) ## Frequently Asked Questions diff --git a/src/hnswutils.c b/src/hnswutils.c index 8982f7f..decd3e5 100644 --- a/src/hnswutils.c +++ b/src/hnswutils.c @@ -936,7 +936,7 @@ HnswSearchLayer(char *base, HnswQuery * q, List *ep, int ef, int lc, Relation in continue; } - if (eElement == NULL || !(eDistance < f->distance || alwaysAdd)) + if (!(eDistance < f->distance || alwaysAdd)) { if (discarded != NULL) {