aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/NativeInteger.c
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2005-01-17 14:32:45 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2005-01-17 14:32:45 +0000
commita8f4a4cab02b4ebe537abb303c365cd4254fc44e (patch)
tree98977afd3089390dbe16ec02919468bfa71ded82 /skeletons/NativeInteger.c
parent9a25e4addf27a4d96f9bcac0e12f558c1b6beaba (diff)
no lvalue casting
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@601 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/NativeInteger.c')
-rw-r--r--skeletons/NativeInteger.c3
1 files changed, 2 insertions, 1 deletions
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;