Skip to content

Commit

Permalink
Fixed segmentation fault with index creation when lists > 6500 - fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ankane committed Oct 30, 2022
1 parent 379a760 commit b3cad93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1 (unreleased)

- Fixed segmentation fault with index creation when lists > 6500

## 0.3.0 (2022-10-15)

- Added support for Postgres 15
Expand Down
6 changes: 3 additions & 3 deletions src/ivfkmeans.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ InitCenters(Relation index, VectorArray samples, VectorArray centers, float *low
FmgrInfo *procinfo;
Oid collation;
int i;
int j;
int64 j;
double distance;
double sum;
double choice;
Expand Down Expand Up @@ -182,8 +182,8 @@ ElkanKmeans(Relation index, VectorArray samples, VectorArray centers)
Vector *vec;
Vector *newCenter;
int iteration;
int j;
int k;
int64 j;
int64 k;
int dimensions = centers->dim;
int numCenters = centers->maxlen;
int numSamples = samples->length;
Expand Down

0 comments on commit b3cad93

Please sign in to comment.