Commit 04c8ef07 authored by Lev Walkin's avatar Lev Walkin

no lvalue casting

No related merge requests found
......@@ -523,7 +523,8 @@ emit_size_determination_code(arg_t *arg, asn1p_expr_type_e etype) {
INDENT(+1);
OUT("const A_%s_OF(void) *list;\n",
etype==ASN_CONSTR_SET_OF?"SET":"SEQUENCE");
OUT("(const void *)list = sptr;\n");
OUT("list = (const A_%s_OF(void) *)sptr;\n",
etype==ASN_CONSTR_SET_OF?"SET":"SEQUENCE");
OUT("size = list->count;\n");
INDENT(-1);
OUT("}\n");
......
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