JuliaGraphics / ColorTypes.jl

Basic color definitions and traits
Other
77 stars 35 forks source link

Multidimensional `rand` for `C{BigFloat}` is broken #267

Open kimikage opened 2 years ago

kimikage commented 2 years ago

The type of error is different before and after PR #222, but both problems are due to the incorrect assumption about bitstype.

v0.11.0

julia> rand(HSV{BigFloat}, 3)
ERROR: ArgumentError: cannot reinterpret `HSV{BigFloat}` as `BigFloat`, type `BigFloat` is not a bits type

master

julia> rand(HSV{BigFloat}, 3)
ERROR: UndefRefError: access to undefined reference