Skip to content

Commit

Permalink
Fix polygonize with LinRange
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Jul 30, 2024
1 parent ca428c6 commit 45c6780
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/methods/polygonize.jl
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ function _polygonize(f::Base.Callable, xs::AbstractRange, ys::AbstractRange, A::
ybounds = first(ys) - yhalf : step(ys) : last(ys) + yhalf
Tx = eltype(xbounds)
Ty = eltype(ybounds)
xvec = similar(Vector{Tuple{Tx,Tx}}, xs)
yvec = similar(Vector{Tuple{Ty,Ty}}, ys)
xvec = similar(Vector{Tuple{Tx,Tx}}, axes(xs))
yvec = similar(Vector{Tuple{Ty,Ty}}, axes(ys))
for (xind, i) in enumerate(eachindex(xvec))
xvec[i] = xbounds[xind], xbounds[xind+1]
end
Expand Down

0 comments on commit 45c6780

Please sign in to comment.