summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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{};