Skip to content
Snippets Groups Projects
Commit 04c8ef07 authored by Lev Walkin's avatar Lev Walkin
Browse files

no lvalue casting

parent 75972b53
No related branches found
No related tags found
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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment