Skip to content

Commit

Permalink
Merge pull request #25 from abhijithch/ac/deprecation
Browse files Browse the repository at this point in the history
fix dictionary deprecation warning
  • Loading branch information
stevengj authored Jul 11, 2016
2 parents 1bd8fb4 + a8dbbed commit 3669a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DecFP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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{RoundingMode, UInt32}([(rounding_c2j[i], Cuint(i-1)) for i in 1:length(rounding_c2j)])
end

# status flags from bid_functions.h:
Expand Down

0 comments on commit 3669a75

Please sign in to comment.