aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/tests/check-REAL.c
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2006-07-27 11:46:25 +0000
committerLev Walkin <vlm@lionet.info>2006-07-27 11:46:25 +0000
commitb1919380381a2a475390f8cfb9afe0e8dd1f899e (patch)
tree0ca4bf5ebf26c2082c3a963e5ecab37cbae3b5ac /skeletons/tests/check-REAL.c
parent640e04b4fe8097883d52057a8852fd1f6697c493 (diff)
strict aliasing rules
Diffstat (limited to 'skeletons/tests/check-REAL.c')
-rw-r--r--skeletons/tests/check-REAL.c6
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]);