aboutsummaryrefslogtreecommitdiff
path: root/ndarray.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-04-17 10:18:45 +0200
committerAnton Khirnov <anton@khirnov.net>2019-04-17 10:27:53 +0200
commit6a92edee9bd679d1f71e66b2cc96456bead219fd (patch)
tree32d213a693cf0040ca022f9764f81aad69a7a609 /ndarray.h
parent552bcf4c906522c3ef7695654052f61e12260049 (diff)
ndarray: support stepsizes other than 1 in slicing
Diffstat (limited to 'ndarray.h')
-rw-r--r--ndarray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ndarray.h b/ndarray.h
index 9e1b8ba..42cb64f 100644
--- a/ndarray.h
+++ b/ndarray.h
@@ -25,7 +25,7 @@
typedef struct Slice {
ptrdiff_t start;
ptrdiff_t end;
- size_t step;
+ ptrdiff_t step;
} Slice;
#define SLICE(start, end, step) ((Slice){ start, end, step })