Skip to content

Commit

Permalink
Work around JuliaLang/julia#34121 (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage authored Jan 7, 2020
1 parent e18c350 commit 3048c18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/FixedPointNumbers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ end
rand(::Type{T}) where {T <: FixedPoint} = reinterpret(T, rand(rawtype(T)))
rand(::Type{T}, sz::Dims) where {T <: FixedPoint} = reinterpret(T, rand(rawtype(T), sz))

include("precompile.jl")
_precompile_()
if VERSION >= v"1.1" # work around https://github.com/JuliaLang/julia/issues/34121
include("precompile.jl")
_precompile_()
end

end # module

0 comments on commit 3048c18

Please sign in to comment.