From 07c62c2dbbfa860ab72436ddd21c4ac8e220f9df Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 28 Feb 2024 18:48:35 +0100 Subject: codec: Add check for default Array uninitialized edges case --- modules/codec/c++/data.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp index 2196408..f7c9239 100644 --- a/modules/codec/c++/data.hpp +++ b/modules/codec/c++/data.hpp @@ -284,6 +284,7 @@ private: } uint64_t get_flat_index(const data>& i) const { + assert(value_.size() == get_full_size()); uint64_t s = 0; uint64_t stride = 1; -- cgit v1.2.3