Skip to content

Commit f59b073

Browse files
committed
polyhedral: fix ray_vector broadcast with extended scalar_types
1 parent 8dbe909 commit f59b073

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PolyhedralGeometry/iterators.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ for (T, _t) in ((:PointVector, :point_vector), (:RayVector, :ray_vector))
5151
_find_elem_type(po::$T) = elem_type(coefficient_field(po))
5252

5353
function Base.similar(
54-
bc::Broadcast.Broadcasted{Broadcast.ArrayStyle{$T}}, ::Type{ElType}
55-
) where {ElType<:scalar_types_extended}
54+
bc::Broadcast.Broadcasted{Broadcast.ArrayStyle{$T}}, ::Type{<:Union{scalar_types,ZZRingElem}})
5655
e = bc.f(first.(bc.args)...)
5756
return $_t(parent(e), axes(bc)...)
5857
end

0 commit comments

Comments
 (0)