diff options
author | Lev Walkin <vlm@lionet.info> | 2006-07-27 11:46:25 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2006-07-27 11:46:25 +0000 |
commit | b1919380381a2a475390f8cfb9afe0e8dd1f899e (patch) | |
tree | 0ca4bf5ebf26c2082c3a963e5ecab37cbae3b5ac /skeletons/tests/check-REAL.c | |
parent | 640e04b4fe8097883d52057a8852fd1f6697c493 (diff) |
strict aliasing rules
Diffstat (limited to 'skeletons/tests/check-REAL.c')
-rw-r--r-- | skeletons/tests/check-REAL.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/skeletons/tests/check-REAL.c b/skeletons/tests/check-REAL.c index e29df500..641da2da 100644 --- a/skeletons/tests/check-REAL.c +++ b/skeletons/tests/check-REAL.c @@ -152,6 +152,8 @@ check_xer(int fuzzy, double orig_value) { REAL_t st; REAL_t *newst0 = 0; REAL_t *newst1 = 0; + REAL_t **newst0p = &newst0; + REAL_t **newst1p = &newst1; double value0, value1; int ret; @@ -176,12 +178,12 @@ check_xer(int fuzzy, double orig_value) { reconstr_lens[0], reconstructed[0] ); - rc = xer_decode(0, &asn_DEF_REAL, (void **)&newst0, + rc = xer_decode(0, &asn_DEF_REAL, (void **)newst0p, reconstructed[0], reconstr_lens[0]); assert(rc.code == RC_OK); assert(rc.consumed < reconstr_lens[0]); - rc = xer_decode(0, &asn_DEF_REAL, (void **)&newst1, + rc = xer_decode(0, &asn_DEF_REAL, (void **)newst1p, reconstructed[1], reconstr_lens[1]); assert(rc.code == RC_OK); assert(rc.consumed == reconstr_lens[1]); |