Skip to content

Commit 36d00bf

Browse files
authored
Fix failing windows build (#346)
fix failing windows build
1 parent 79d5d74 commit 36d00bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python_bindings/bindings.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -749,9 +749,9 @@ class BFIndex {
749749
if (!normalize) {
750750
alg->addPoint((void *) items.data(row), (size_t) id);
751751
} else {
752-
float normalized_vector[dim];
753-
normalize_vector((float *)items.data(row), normalized_vector);
754-
alg->addPoint((void *) normalized_vector, (size_t) id);
752+
std::vector<float> normalized_vector(dim);
753+
normalize_vector((float *)items.data(row), normalized_vector.data());
754+
alg->addPoint((void *) normalized_vector.data(), (size_t) id);
755755
}
756756
}
757757
cur_l+=rows;

0 commit comments

Comments
 (0)