Skip to content

Commit

Permalink
Additional debug for issue #972
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Sep 21, 2024
1 parent dacac9a commit 2bbb3ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/rt/wave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2bbb3ab

Please sign in to comment.