From 436383614269eb3d9adb1c60f84d3ea0d99c3480 Mon Sep 17 00:00:00 2001 From: Abhijith Date: Fri, 8 Jul 2016 12:16:21 +0530 Subject: [PATCH 1/2] fix dictionary deprecation warning --- src/DecFP.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DecFP.jl b/src/DecFP.jl index 2f76732..1fedd84 100644 --- a/src/DecFP.jl +++ b/src/DecFP.jl @@ -18,7 +18,7 @@ function __init__() # rounding modes, from bid_functions.h global const rounding_c2j = [RoundNearest, RoundDown, RoundUp, RoundToZero, RoundFromZero] - global const rounding_j2c = [ rounding_c2j[i]=>Cuint(i-1) for i in 1:length(rounding_c2j) ] + global const rounding_j2c = Dict{Any, Any}([(rounding_c2j[i], Cuint(i-1)) for i in 1:length(rounding_c2j)]) end # status flags from bid_functions.h: From a8dbbed964fe6bf30d15b2591accb104d84cf235 Mon Sep 17 00:00:00 2001 From: Abhijith Date: Mon, 11 Jul 2016 11:27:00 +0530 Subject: [PATCH 2/2] fix types --- src/DecFP.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DecFP.jl b/src/DecFP.jl index 1fedd84..9d5ebae 100644 --- a/src/DecFP.jl +++ b/src/DecFP.jl @@ -18,7 +18,7 @@ function __init__() # rounding modes, from bid_functions.h global const rounding_c2j = [RoundNearest, RoundDown, RoundUp, RoundToZero, RoundFromZero] - global const rounding_j2c = Dict{Any, Any}([(rounding_c2j[i], Cuint(i-1)) for i in 1:length(rounding_c2j)]) + global const rounding_j2c = Dict{RoundingMode, UInt32}([(rounding_c2j[i], Cuint(i-1)) for i in 1:length(rounding_c2j)]) end # status flags from bid_functions.h: