QuackatronHQ / Gigarepo

Possible loss of precision due to iterator element type-casting in std::accumulate CXX-W2005
Bug risk
Major
1 occurrence in this check
Possible loss of precision due the type-folding from float to int
26float foo(float a[100]) {
27  // Possible loss of precision due the type-folding from `float` to `int`".
28  // Replace last argument with 0.0
29  return std::accumulate(a, a + 99, 0);30}