commit 1ffcbf78db5168ec7f05fdf75663ee6052d826c4
parent c6cf5bbf7d16472dace59b0cddaffd88964ed33f
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date: Thu, 10 Nov 2022 17:15:36 +0000
Use sized int for index_t
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/kfr/base/shape.hpp b/include/kfr/base/shape.hpp
@@ -42,10 +42,11 @@ namespace kfr
{
#ifndef KFR_32BIT_INDICES
-using index_t = size_t;
#if SIZE_MAX == UINT64_MAX
+using index_t = uint64_t;
using signed_index_t = int64_t;
#else
+using index_t = uint32_t;
using signed_index_t = int32_t;
#endif
#else