diff options
| author | Tylo <[email protected]> | 2020-06-24 07:00:37 +0200 |
|---|---|---|
| committer | Tylo <[email protected]> | 2020-06-24 07:00:37 +0200 |
| commit | 54da34796941dae3990870a98fc6bb28c80ae522 (patch) | |
| tree | 04f21b48404dc941036eed364bc66edee8aced52 | |
| parent | 4b5c75d1b3c012e657f50b9f58ef57bc6a901758 (diff) | |
| download | STC-modified-54da34796941dae3990870a98fc6bb28c80ae522.tar.gz STC-modified-54da34796941dae3990870a98fc6bb28c80ae522.zip | |
Fixed defs.
| -rw-r--r-- | stc/carray.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/stc/carray.h b/stc/carray.h index 9537e028..1e2be0cd 100644 --- a/stc/carray.h +++ b/stc/carray.h @@ -56,9 +56,8 @@ int main() #define carray2_size(a) ((a)._yxdim)
#define carray3_size(a) _carray3_size(&(a)._zdim)
-
-#define _carray_own (1ull << ((sizeof(size_t) << 3) - 1))
-#define _carray_sub (~_carray_own)
+#define _carray_own ((SIZE_MAX>>1)+1)
+#define _carray_sub (SIZE_MAX>>1)
static inline size_t _carray_ydim(const size_t* yxdim) {
return yxdim[0] / (yxdim[-1] & _carray_sub);
|
