using createConstantZero instead of createBlank

the content for createBlank is not initialized, which causes undefined
behavoir.
This commit is contained in:
Kai Bao 2019-06-13 15:05:12 +02:00
parent 4c105d7672
commit ab839896b6

View File

@ -64,7 +64,7 @@ inline EvalWell zeroIfNanInf(const EvalWell& value) {
using Toolbox = MathToolbox<EvalWell>; using Toolbox = MathToolbox<EvalWell>;
return nan_or_inf ? Toolbox::createBlank(value) : value; return nan_or_inf ? Toolbox::createConstantZero(value) : value;
} }