diff options
author | Lev Walkin <vlm@lionet.info> | 2004-09-05 10:42:19 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2004-09-05 10:42:19 +0000 |
commit | cb2b2d16c89666adc06912941ff85812b5f8d962 (patch) | |
tree | 578291a490430c550a655c915117dcf67c7b178b /libasn1compiler | |
parent | 7b1b9ab50b9761799404ddb5702947ce07fc098b (diff) |
measured in bits
Diffstat (limited to 'libasn1compiler')
-rw-r--r-- | libasn1compiler/asn1c_constraint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libasn1compiler/asn1c_constraint.c b/libasn1compiler/asn1c_constraint.c index beb87456..10832b56 100644 --- a/libasn1compiler/asn1c_constraint.c +++ b/libasn1compiler/asn1c_constraint.c @@ -481,7 +481,7 @@ emit_size_determination_code(arg_t *arg, asn1p_expr_type_e etype) { case ASN_BASIC_BIT_STRING: OUT("if(st->size > 0) {\n"); OUT("\t/* Size in bits */\n"); - OUT("\tsize = (st->size - 1) - (st->buf[0] & 0x7);\n"); + OUT("\tsize = 8 * (st->size - 1) - (st->buf[0] & 0x7);\n"); OUT("} else {\n"); OUT("\tsize = 0;\n"); OUT("}\n"); |