Skip to content

Commit

Permalink
Change "unsafe_copy!" to "unsafe_copyto!" (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored and mpastell committed Feb 11, 2019
1 parent ee10177 commit a5d69c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LIBSVM.jl
Expand Up @@ -93,8 +93,8 @@ function SVM(smc::SVMModel, y::T, X, weights, labels, svmtype, kernel) where T
else
probA = Vector{Float64}(undef, rs)
probB = Vector{Float64}(undef, rs)
unsafe_copy!(pointer(probA), smc.probA, rs)
unsafe_copy!(pointer(probB), smc.probB, rs)
unsafe_copyto!(pointer(probA), smc.probA, rs)
unsafe_copyto!(pointer(probB), smc.probB, rs)
end

#Weights
Expand Down

0 comments on commit a5d69c1

Please sign in to comment.