Skip to content

Commit c3406d3

Browse files
Update src/expint.jl with review suggestions
Co-authored-by: Oscar Smith <[email protected]>
1 parent bd3fe6e commit c3406d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/expint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ function li(x::Real)
630630
if x < 0
631631
throw(DomainError(x, "negative argument, convert to complex first"))
632632
elseif x == 0
633-
return zero(typeof(x))
633+
return zero(float(x))
634634
else
635635
return expinti(log(x))
636636
end

0 commit comments

Comments
 (0)