better comment in assert of finding nan in histograms
This commit is contained in:
parent
abf6773153
commit
15531646b5
|
@ -119,7 +119,7 @@ class Stat
|
||||||
for(vi = m.vert.begin(); vi != m.vert.end(); ++vi)
|
for(vi = m.vert.begin(); vi != m.vert.end(); ++vi)
|
||||||
if(!(*vi).IsD())
|
if(!(*vi).IsD())
|
||||||
{
|
{
|
||||||
assert(!math::IsNAN((*vi).Q()));
|
assert(!math::IsNAN((*vi).Q()) && "You should never try to compute Histogram with Invalid Floating points numbers (NaN)");
|
||||||
h.Add((*vi).Q());
|
h.Add((*vi).Q());
|
||||||
}
|
}
|
||||||
// Sanity check; If some very wrong value has happened in the Q value,
|
// Sanity check; If some very wrong value has happened in the Q value,
|
||||||
|
|
Loading…
Reference in New Issue