Skip to content

Commit c2a37a1

Browse files
Fixed wrong NaN type
Co-authored-by: David Müller-Widmann <[email protected]>
1 parent bba5f9b commit c2a37a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/erf.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ function _erf(x::Float32)
246246
return copysign(1f0-evalpoly(xabs-2.5f0,p),x)
247247

248248
elseif isnan(x)
249-
return NaN
249+
return NaN32
250250
else
251251
# range [4.0,inf)
252252
return copysign(1f0, x)

0 commit comments

Comments
 (0)