Skip to content

Commit

Permalink
perhaps coercion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jw2249a committed May 6, 2024
1 parent 7fd5dca commit 38d504e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/gammas/gammaNUMCKpar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,6 @@ function gammaNUMCKpar!(vecA::Vector, vecB::Vector,
vecA=allow_missing(vecA)
vecB=allow_missing(vecB)

# coercing cuts in case they are wrong type
if (eltype(vecA) <: Union{Integer,Missing}) & (eltype(vecB) <: Union{Integer,Missing})
cut_a = Int(cut_a)
cut_b = Int(cut_b)
else
cut_a = Float64(cut_a)
cut_b = Float64(cut_b)
end

# get the sorted indices of a large copied array
append!(vecA,vecB)
Expand Down

0 comments on commit 38d504e

Please sign in to comment.