diff options
author | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2006-09-08 19:38:11 +0000 |
---|---|---|
committer | vlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826> | 2006-09-08 19:38:11 +0000 |
commit | b609cf66c9f4516ec882a7fe3b693db9f25b4f62 (patch) | |
tree | 024874ccf6196086aa885660da7caaaf6ebff490 | |
parent | 417494060a2d5aff18105cd90f3085b6ba194b81 (diff) |
bit string constraint checking changed
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1157 59561ff5-6e30-0410-9f3c-9617f08c8826
-rw-r--r-- | tests/19-param-OK.asn1.-P | 2 | ||||
-rw-r--r-- | tests/72-same-names-OK.asn1.-P | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/19-param-OK.asn1.-P b/tests/19-param-OK.asn1.-P index 5f21cd41..a7f8e7b2 100644 --- a/tests/19-param-OK.asn1.-P +++ b/tests/19-param-OK.asn1.-P @@ -46,7 +46,7 @@ memb_signature_constraint_1(asn_TYPE_descriptor_t *td, const void *sptr, if(st->size > 0) { /* Size in bits */ - size = 8 * (st->size - 1) - (st->buf[0] & 0x7); + size = 8 * st->size - (st->bits_unused & 0x07); } else { size = 0; } diff --git a/tests/72-same-names-OK.asn1.-P b/tests/72-same-names-OK.asn1.-P index 5f106f81..38b1fe6d 100644 --- a/tests/72-same-names-OK.asn1.-P +++ b/tests/72-same-names-OK.asn1.-P @@ -424,7 +424,7 @@ memb_a_constraint_3(asn_TYPE_descriptor_t *td, const void *sptr, if(st->size > 0) { /* Size in bits */ - size = 8 * (st->size - 1) - (st->buf[0] & 0x7); + size = 8 * st->size - (st->bits_unused & 0x07); } else { size = 0; } @@ -455,7 +455,7 @@ memb_a_constraint_8(asn_TYPE_descriptor_t *td, const void *sptr, if(st->size > 0) { /* Size in bits */ - size = 8 * (st->size - 1) - (st->buf[0] & 0x7); + size = 8 * st->size - (st->bits_unused & 0x07); } else { size = 0; } |