Skip to content

Commit b63d58b

Browse files
stop overusing static!!!
1 parent a393025 commit b63d58b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/static/array_index.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ end
1212
return _strides2int(offsets(x), static_strides(x), Tuple(i)) + static(1)
1313
end
1414
@generated function _strides2int(o::O, s::S, i::I) where {O,S,I}
15-
N = known_length(S)
15+
N = length(S)
1616
out = :()
1717
for i in 1:N
1818
tmp = :(((getfield(i, $i) - getfield(o, $i)) * getfield(s, $i)))

0 commit comments

Comments
 (0)