Skip to content

Commit b585127

Browse files
authored
Simplify Rounding Mode methods
Apply PR Review suggestion from @omus.
1 parent c660eb5 commit b585127

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/FixedPointDecimals.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ if VERSION >= v"1.4.0-"
298298
# TODO: Add support for (RoundFromZero, RoundNearest, RoundNearestTiesAway), which
299299
# aren't supported for Ints.
300300
for R in (RoundToZero, RoundUp, RoundDown)
301-
RType = typeof(R)
302-
Base.rem(x::T, y::T, r::RType) where {T <: FD} = reinterpret(T, rem(x.i, y.i, r))
301+
Base.rem(x::T, y::T, r::typeof(R)) where {T <: FD} = reinterpret(T, rem(x.i, y.i, r))
303302
end
304303
end
305304

0 commit comments

Comments
 (0)