Skip to content

Commit aad387c

Browse files
committed
add bounds to compats
the minimum required FixedPointNumbers is 0.8.0 since it includes the bswap code from JuliaMath/FixedPointNumbers.jl#151
1 parent d5b98fc commit aad387c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,13 @@ PkgVersion = "eebad327-c553-4316-9ea0-9fa01ccd7688"
1515
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
1616

1717
[compat]
18+
ColorTypes = "0.10"
19+
DocStringExtensions = "0.8.3"
20+
FileIO = "1"
21+
FixedPointNumbers = "0.8"
22+
IndirectArrays = "0.5.1"
23+
OffsetArrays = "1"
24+
OrderedCollections = "1"
25+
PkgVersion = "0.1.1"
26+
ProgressMeter = "1"
1827
julia = "1.4, 1.5"

src/utils.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,4 @@ const rawtype_mapping = Dict(
137137
(SAMPLEFORMAT_IEEEFP, 64) => Float64,
138138
)
139139

140-
Base.bswap(d::FixedPoint{T, N}) where {T, N} = FixedPointNumber.rawone(FixedPoint{T, N}(bswap(d)))
141-
Base.bswap(c::Colorant{T, N}) where {T, N} = mapc(bswap, c)
142-
Base.bswap(c::Colorant{<: FixedPoint{UInt8, N1}, N2}) where {N1, N2} = c
140+
Base.bswap(c::Colorant{T, N}) where {T, N} = mapc(bswap, c)

0 commit comments

Comments
 (0)