From a5d69c1bf7c0eb01410f81873e2545d90ebd5a0d Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Mon, 11 Feb 2019 07:09:35 -0500 Subject: [PATCH] Change "unsafe_copy!" to "unsafe_copyto!" (#44) --- src/LIBSVM.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LIBSVM.jl b/src/LIBSVM.jl index 46c590b..7f14732 100644 --- a/src/LIBSVM.jl +++ b/src/LIBSVM.jl @@ -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