Skip to content

Commit

Permalink
fix case of unknown extents
Browse files Browse the repository at this point in the history
  • Loading branch information
simeonschaub committed Oct 8, 2023
1 parent 8217a73 commit 678b9a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ function make_shape(output_idx, expr, ranges=Dict())
end
mi = matches[i]
@assert !isempty(mi)
return Base.OneTo(length(get_extents(mi)))
ext = get_extents(mi)
ext isa Unknown && return Unknown()
return Base.OneTo(length(ext))
elseif i isa Integer
return Base.OneTo(1)
end
Expand Down

0 comments on commit 678b9a9

Please sign in to comment.