From 6a92edee9bd679d1f71e66b2cc96456bead219fd Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 17 Apr 2019 10:18:45 +0200 Subject: ndarray: support stepsizes other than 1 in slicing --- ndarray.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ndarray.h') 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 }) -- cgit v1.2.3