Skip to content

Commit 694c0a8

Browse files
authored
fix: issue with backported limitless type proofs (#1031)
fix spillage overflow
1 parent 56cef5c commit 694c0a8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/cmd/util.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,10 @@ func determineConservativeSpillage(defensive bool, hirSchema *hir.Schema) []uint
130130
if i == 0 {
131131
spillage = ith
132132
} else {
133+
// Expand to account for additional modules.
134+
for len(spillage) < len(ith) {
135+
spillage = append(spillage, 0)
136+
}
133137
// Conservative include all spillage
134138
for j := range ith {
135139
spillage[j] = max(spillage[j], ith[j])

0 commit comments

Comments
 (0)