starving instead of failing if no more data

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1366 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2007-06-29 13:27:48 +00:00
parent a6114bd5b3
commit a7560f6a93
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ BOOLEAN_decode_uper(asn_codec_ctx_t *opt_codec_ctx, asn_TYPE_descriptor_t *td,
switch(per_get_few_bits(pd, 1)) {
case 1: *st = 1; break;
case 0: *st = 0; break;
case -1: default: _ASN_DECODE_FAILED;
case -1: default: _ASN_DECODE_STARVED;
}
ASN_DEBUG("%s decoded as %s", td->name, *st ? "TRUE" : "FALSE");