Skip to content

Commit

Permalink
revert fix after comment
Browse files Browse the repository at this point in the history
  • Loading branch information
miclegr committed Jul 12, 2024
1 parent 6fc000e commit 33d68cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/TypedIndex.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class TypedIndex : public Index {

int start = 0;
if (!ep_added) {
size_t id = ids.size() ? ids.at(0) : (currentLabel.load());
size_t id = ids.size() ? ids.at(0) : (currentLabel.fetch_add(1));
// TODO(psobot): Should inputVector be on the stack instead?
std::vector<float> inputVector(actualDimensions);
std::vector<data_t> convertedVector(actualDimensions);
Expand Down

0 comments on commit 33d68cd

Please sign in to comment.