Skip to content

Commit

Permalink
Don't complain about bitstream usage for discarded groups
Browse files Browse the repository at this point in the history
Fixes #59
  • Loading branch information
flyingmutant committed Aug 3, 2023
1 parent 0b3bae0 commit ad51225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func (rec *recordedBits) beginGroup(label string, standalone bool) int {
}

func (rec *recordedBits) endGroup(i int, discard bool) {
assertf((!rec.persist && rec.dataLen > i) || (rec.persist && len(rec.data) > rec.groups[i].begin),
assertf(discard || (!rec.persist && rec.dataLen > i) || (rec.persist && len(rec.data) > rec.groups[i].begin),
"group did not use any data from bitstream; this is likely a result of Custom generator not calling any of the built-in generators")

if !rec.persist {
Expand Down

0 comments on commit ad51225

Please sign in to comment.