Skip to content

Commit db7a508

Browse files
authored
This backports PR #160.
1 parent 7ad0f0c commit db7a508

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "FixedPointNumbers"
22
uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
3-
version = "0.7.0"
3+
version = "0.7.1"
44

55
[compat]
66
julia = "1"

src/FixedPointNumbers.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ end
197197
rand(::Type{T}) where {T <: FixedPoint} = reinterpret(T, rand(rawtype(T)))
198198
rand(::Type{T}, sz::Dims) where {T <: FixedPoint} = reinterpret(T, rand(rawtype(T), sz))
199199

200-
include("precompile.jl")
201-
_precompile_()
200+
if VERSION >= v"1.1" # work around https://github.com/JuliaLang/julia/issues/34121
201+
include("precompile.jl")
202+
_precompile_()
203+
end
202204

203205
end # module

0 commit comments

Comments
 (0)