summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-06-13 14:56:22 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-06-13 14:56:22 +0200
commitc259e0941b442c79b868e06ba80bdf3f55e9b5e6 (patch)
tree2ca358ca5f117eda8eadb0495f44ab9c34857874
parentf2a011d54eeeceaff955c24c3fad344b479c468a (diff)
Also changed the original data type
-rw-r--r--modules/codec-json/c++/json.tmpl.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/codec-json/c++/json.tmpl.hpp b/modules/codec-json/c++/json.tmpl.hpp
index 1cf566e..ed70ec8 100644
--- a/modules/codec-json/c++/json.tmpl.hpp
+++ b/modules/codec-json/c++/json.tmpl.hpp
@@ -314,7 +314,7 @@ struct json_encode<schema::FixedArray<T,D...>, FromEncode> {
static error_or<void> encode(const data<Schema, FromEncode>& from, buffer& to, uint64_t depth, bool pretty) {
if constexpr (sizeof...(D) > 0){
- std::array<std::size_t, sizeof...(D)> index;
+ data<schema::FixedArray<schema::UInt64,D>, FromEncode> index;
return encode_level<0,D...>(from, to, index, depth+1u, pretty);
}
return void_t{};