aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2007-06-29 13:27:48 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2007-06-29 13:27:48 +0000
commita7560f6a93c83a168baf5016dbc85b4f10355555 (patch)
treefe72b30c9d6c3bb0310c82abce3a2781b618135f
parenta6114bd5b3c57cf484879c54fdd93331845b7a68 (diff)
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
-rw-r--r--skeletons/BOOLEAN.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/skeletons/BOOLEAN.c b/skeletons/BOOLEAN.c
index bb4697c2..2c2bbcf2 100644
--- a/skeletons/BOOLEAN.c
+++ b/skeletons/BOOLEAN.c
@@ -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");