From 2bbb3abefaf9dc67bba0763d225239e0d0bb9356 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Sat, 21 Sep 2024 09:11:06 +0100 Subject: [PATCH] Additional debug for issue #972 --- src/rt/wave.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rt/wave.c b/src/rt/wave.c index 8bd3f6d1e..76a818f81 100644 --- a/src/rt/wave.c +++ b/src/rt/wave.c @@ -758,6 +758,11 @@ static void fst_create_record_array_var(wave_dumper_t *wd, tree_t d, type_t elem = type_elem(type); const bool nested = type_is_array(elem); + // XXX: debug for #972 + if (count % length != 0) + warn_at(tree_loc(d), "record array has unexpected count=%d " + "length=%"PRIi64, count, length); + assert(count % length == 0); const int stride = count / length;