Skip to content

Commit 2aee8ba

Browse files
authored
commnt
1 parent f1aa583 commit 2aee8ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FixedPointDecimals.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ function Base.convert(::Type{FD{T, f}}, x::Integer) where {T, f}
306306
return reinterpret(FD{T, f}, v)
307307
end
308308
function Base.convert(::Type{FD{BigInt, f}}, x::Integer) where {f}
309-
# We specialize on f==1, since julia can't eliminate BigInt multiplication.
309+
# We specialize on f==0, since julia can't eliminate BigInt multiplication.
310310
if f == 0
311311
# If x is already a BigInt, this is a no-op, otherwise we alloc a new BigInt.
312312
return reinterpret(FD{BigInt, f}, BigInt(x))

0 commit comments

Comments
 (0)