Commit 1b1c5fc7 authored by Lev Walkin's avatar Lev Walkin

bit string constraint checking changed

parent dcf1e35b
......@@ -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;
}
......
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment