From ca44787f94264d1070b39bfc4f634f9a886bc938 Mon Sep 17 00:00:00 2001 From: kimikage Date: Wed, 12 Jun 2024 21:18:41 +0900 Subject: [PATCH] Work around invalid SIMD `bswap` --- src/utils.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.jl b/src/utils.jl index 517a38c..5e16505 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -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/