aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-09-08 19:38:11 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2006-09-08 19:38:11 +0000
commitb609cf66c9f4516ec882a7fe3b693db9f25b4f62 (patch)
tree024874ccf6196086aa885660da7caaaf6ebff490 /tests
parent417494060a2d5aff18105cd90f3085b6ba194b81 (diff)
bit string constraint checking changed
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1157 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'tests')
-rw-r--r--tests/19-param-OK.asn1.-P2
-rw-r--r--tests/72-same-names-OK.asn1.-P4
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;
}