Commit 8b14778f authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

histGetPercentile: replace variable length array 'values' by std::vector.

parent 850d3898
......@@ -321,7 +321,7 @@ histGetPercentile(const Histogram &hist, double p, int ptype)
}
else
{
if ( (ptype & FIELD_FLT))
if ((ptype & FIELD_FLT))
{
std::vector<double> values(hist.nsamp);
for (int i = 0; i < hist.nsamp; i++) values[i] = (double)FLT_PTR(hist.ptr)[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment