Skip to content

Commit

Permalink
avoid "type DataType has no field size"
Browse files Browse the repository at this point in the history
  • Loading branch information
visr authored and thautwarm committed Nov 2, 2022
1 parent f2f436d commit e9ba865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AbstractPatterns/impl/RedyFlavoured.jl
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function myimpl()
if v isa Symbol
v = QuoteNode(v)
end
(isprimitivetype(ty) || ty.size == 0 && !ismutabletype(ty)) ?
(isprimitivetype(ty) || !ismutabletype(ty) && Core.sizeof(ty) == 0) ?
CheckCond(:($(target.repr) === $v)) : CheckCond(:($(target.repr) == $v))
end

Expand Down

0 comments on commit e9ba865

Please sign in to comment.