From 12a053f77642fd9e671a6596d53f6350dd93abff Mon Sep 17 00:00:00 2001 From: Nick Robinson Date: Fri, 31 Jan 2025 12:18:32 +0000 Subject: [PATCH 1/2] Fix world age warnings from accessing binding before definiton This warning is only present starting in Julia 1.12 --- src/FixedPointDecimals.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/FixedPointDecimals.jl b/src/FixedPointDecimals.jl index 979d707..43466bb 100644 --- a/src/FixedPointDecimals.jl +++ b/src/FixedPointDecimals.jl @@ -47,11 +47,12 @@ const FMAFloat = Union{Float16, Float32, Float64, BigFloat} for fn in [:trunc, :floor, :ceil] fnname = Symbol(fn, "mul") + fnname_str = String(fnname) opp_fn = fn == :floor ? :ceil : :floor @eval begin @doc """ - $($fnname)(I, x, y) :: I + $($fnname_str)(I, x, y) :: I Compute `$($fn)(I, x * y)`, returning the result as type `I`. For floating point values, this function can be more accurate than From a67927e78aaee5c751568350d7220046f03c95e0 Mon Sep 17 00:00:00 2001 From: Nick Robinson Date: Fri, 31 Jan 2025 12:19:48 +0000 Subject: [PATCH 2/2] Bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 6a27190..11f7b50 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "FixedPointDecimals" uuid = "fb4d412d-6eee-574d-9565-ede6634db7b0" authors = ["Fengyang Wang ", "Curtis Vogt "] -version = "0.6.0" +version = "0.6.1" [deps] BitIntegers = "c3b6d118-76ef-56ca-8cc7-ebb389d030a1"