From 37bc03dca31b78df19f1d79913e691cf2e0eb86d Mon Sep 17 00:00:00 2001 From: vlm Date: Thu, 27 Jan 2005 17:58:47 +0000 Subject: [PATCH] revert to casting lvalue git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@617 59561ff5-6e30-0410-9f3c-9617f08c8826 --- libasn1compiler/asn1c_constraint.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libasn1compiler/asn1c_constraint.c b/libasn1compiler/asn1c_constraint.c index 40ee4cb6..47469511 100644 --- a/libasn1compiler/asn1c_constraint.c +++ b/libasn1compiler/asn1c_constraint.c @@ -523,8 +523,7 @@ 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("list = (const A_%s_OF(void) *)sptr;\n", - etype==ASN_CONSTR_SET_OF?"SET":"SEQUENCE"); + OUT("(const void *)list = sptr;\n"); OUT("size = list->count;\n"); INDENT(-1); OUT("}\n");