break aliasing rules
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@615 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/skeletons/NativeInteger.c b/skeletons/NativeInteger.c
index c6785c5..d6d1fd8 100644
--- a/skeletons/NativeInteger.c
+++ b/skeletons/NativeInteger.c
@@ -173,6 +173,7 @@
void *buf_ptr, size_t size) {
asn_dec_rval_t rval;
INTEGER_t *st = 0;
+ void *st_ptr = (void *)&st;
int *Int = (int *)*sptr;
if(!Int) {
@@ -185,8 +186,8 @@
}
}
- rval = INTEGER_decode_xer(opt_codec_ctx, td, (void **)&st, opt_mname,
- buf_ptr, size);
+ rval = INTEGER_decode_xer(opt_codec_ctx, td, (void **)st_ptr,
+ opt_mname, buf_ptr, size);
if(rval.code == RC_OK) {
long l;
if(asn_INTEGER2long(st, &l)) {