We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b17d215 commit b3f6c12Copy full SHA for b3f6c12
stdlib/numpy/pybridge.codon
@@ -245,7 +245,7 @@ class ndarray:
245
k = 0
246
for idx in util.multirange(shape):
247
off = 0
248
- for i in range(ndim):
+ for i in staticrange(ndim):
249
off += idx[i] * strides[i]
250
e = Ptr[cobj](arr_data + off)[0]
251
if hasattr(dtype, "__from_py__"):
@@ -263,7 +263,7 @@ class ndarray:
263
264
265
266
267
268
e = Ptr[dtype](arr_data + off)[0]
269
data[k] = e
0 commit comments