Browse Source

also set upstream to error state

master
Felix von Leitner 12 months ago
parent
commit
78084c5bd5
  1. 2
      buffer/bs_seterrorstate.c

2
buffer/bs_seterrorstate.c

@ -3,4 +3,6 @@
void bs_seterrorstate(struct bytestream* b) {
b->cur = 1;
b->max = 0;
if (b->type == BSTREAM)
bs_seterrorstate(b->u.bs);
}

Loading…
Cancel
Save