Skip to content

Commit dd48820

Browse files
committed
fix security alert
1 parent f87ce23 commit dd48820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VecSim/utils/vec_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void normalizeVector(DataType *input_vector, size_t dim) {
8181
double sum = 0;
8282

8383
for (size_t i = 0; i < dim; i++) {
84-
sum += input_vector[i] * input_vector[i];
84+
sum += (double)input_vector[i] * (double)input_vector[i];
8585
}
8686
DataType norm = sqrt(sum);
8787

0 commit comments

Comments
 (0)