Commit f0b7c9a6 authored by Lev Walkin's avatar Lev Walkin

break aliasing rules

parent 74ce4643
...@@ -173,6 +173,7 @@ NativeInteger_decode_xer(asn_codec_ctx_t *opt_codec_ctx, ...@@ -173,6 +173,7 @@ NativeInteger_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
void *buf_ptr, size_t size) { void *buf_ptr, size_t size) {
asn_dec_rval_t rval; asn_dec_rval_t rval;
INTEGER_t *st = 0; INTEGER_t *st = 0;
void *st_ptr = (void *)&st;
int *Int = (int *)*sptr; int *Int = (int *)*sptr;
if(!Int) { if(!Int) {
...@@ -185,8 +186,8 @@ NativeInteger_decode_xer(asn_codec_ctx_t *opt_codec_ctx, ...@@ -185,8 +186,8 @@ NativeInteger_decode_xer(asn_codec_ctx_t *opt_codec_ctx,
} }
} }
rval = INTEGER_decode_xer(opt_codec_ctx, td, (void **)&st, opt_mname, rval = INTEGER_decode_xer(opt_codec_ctx, td, (void **)st_ptr,
buf_ptr, size); opt_mname, buf_ptr, size);
if(rval.code == RC_OK) { if(rval.code == RC_OK) {
long l; long l;
if(asn_INTEGER2long(st, &l)) { if(asn_INTEGER2long(st, &l)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment