Skip to content

Commit

Permalink
Work around invalid SIMD bswap
Browse files Browse the repository at this point in the history
  • Loading branch information
kimikage authored and tlnagy committed Oct 11, 2024
1 parent 25cf338 commit ca44787
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@ const julian_to_tiff = Dict(

_bswap(a) = bswap(a)
_bswap(c::Colorant{T, N}) where {T, N} = mapc(bswap, c)
# work around https://github.com/tlnagy/TiffImages.jl/issues/166
_bswap(x::Vec{N, T}) where {N, T<:Union{UInt8, Int8}} = x

function getstream(fmt, io, name)
# adapted from https://github.com/JuliaStats/RDatasets.jl/pull/119/
Expand Down

0 comments on commit ca44787

Please sign in to comment.