no lvalue casting

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@603 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2005-01-17 14:39:11 +00:00
parent 93d2688f1e
commit b0d811a4a1
1 changed files with 2 additions and 1 deletions

View File

@ -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");