We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS2015 warns of possible loss of data when assigning a zero value as the value is always int and converted to float or double.
float
double
An easy fix would be to make the following changes to findNeighbors function
findNeighbors
auto zero = static_cast<decltype(result.worstDist())>(0); assign(dists, (DIM > 0 ? DIM : BaseClassRef::dim), zero); // Fill it with zeros.
The text was updated successfully, but these errors were encountered:
Closed after #85
Sorry, something went wrong.
No branches or pull requests
VS2015 warns of possible loss of data when assigning a zero value as the value is always int and converted to
float
ordouble
.An easy fix would be to make the following changes to
findNeighbors
functionThe text was updated successfully, but these errors were encountered: