summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-03 22:08:54 +0100
committerTyge Løvset <[email protected]>2023-02-03 22:08:54 +0100
commitcd806510c7c77c0618af58bd804e36f2bad6d219 (patch)
tree6e2224d1d3bad5c5918072149f50aa9dc26769a9 /include
parentdc2c5fa4f1b319988c622f6172926652cabfd1aa (diff)
downloadSTC-modified-cd806510c7c77c0618af58bd804e36f2bad6d219.tar.gz
STC-modified-cd806510c7c77c0618af58bd804e36f2bad6d219.zip
More cspan docs fixes.
Diffstat (limited to 'include')
-rw-r--r--include/stc/cspan.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stc/cspan.h b/include/stc/cspan.h
index 94415df7..315465db 100644
--- a/include/stc/cspan.h
+++ b/include/stc/cspan.h
@@ -104,7 +104,8 @@ typedef struct { int32_t d[3]; } cspan_idx3;
typedef struct { int32_t d[4]; } cspan_idx4;
typedef struct { int32_t d[5]; } cspan_idx5;
typedef struct { int32_t d[6]; } cspan_idx6;
-#define c_ALL 0,-1
+#define c_END -1
+#define c_ALL 0,c_END
#define cspan_md(array, ...) \
{.data=array, .dim={__VA_ARGS__}, .stride={.d={__VA_ARGS__}}}