aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
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;
}