From a8f4a4cab02b4ebe537abb303c365cd4254fc44e Mon Sep 17 00:00:00 2001 From: vlm Date: Mon, 17 Jan 2005 14:32:45 +0000 Subject: no lvalue casting git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@601 59561ff5-6e30-0410-9f3c-9617f08c8826 --- skeletons/NativeInteger.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'skeletons/NativeInteger.c') diff --git a/skeletons/NativeInteger.c b/skeletons/NativeInteger.c index dd5c3e11..c6785c54 100644 --- a/skeletons/NativeInteger.c +++ b/skeletons/NativeInteger.c @@ -176,7 +176,8 @@ NativeInteger_decode_xer(asn_codec_ctx_t *opt_codec_ctx, int *Int = (int *)*sptr; if(!Int) { - (void *)Int = *sptr = CALLOC(1, sizeof(int)); + *sptr = CALLOC(1, sizeof(int)); + Int = (int *)*sptr; if(!Int) { rval.code = RC_FAIL; rval.consumed = 0; -- cgit v1.2.3