aboutsummaryrefslogtreecommitdiffstats
path: root/tests/42-real-life-OK.asn1.-PR
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2005-07-04 02:03:57 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2005-07-04 02:03:57 +0000
commit754a90fb7a78374b6e2652004910b09b1d24f5e8 (patch)
tree2226f0c592c54708d9dad62973de3fb6eb4bc989 /tests/42-real-life-OK.asn1.-PR
parent547b77ad6f45b67487bfcbdaf40d86f71c4eb3ca (diff)
more heuristics testing
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@929 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'tests/42-real-life-OK.asn1.-PR')
-rw-r--r--tests/42-real-life-OK.asn1.-PR14
1 files changed, 4 insertions, 10 deletions
diff --git a/tests/42-real-life-OK.asn1.-PR b/tests/42-real-life-OK.asn1.-PR
index 279e5dc2..09aed561 100644
--- a/tests/42-real-life-OK.asn1.-PR
+++ b/tests/42-real-life-OK.asn1.-PR
@@ -51,11 +51,8 @@ memb_varsets_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
return -1;
}
- { /* Determine the number of elements */
- const A_SEQUENCE_OF(void) *list;
- (const void *)list = sptr;
- size = list->count;
- }
+ /* Determine the number of elements */
+ size = _A_CSEQUENCE_FROM_VOID(sptr)->count;
if((size >= 1)) {
/* Perform validation of the inner elements */
@@ -388,11 +385,8 @@ memb_vset_1_constraint(asn_TYPE_descriptor_t *td, const void *sptr,
return -1;
}
- { /* Determine the number of elements */
- const A_SET_OF(void) *list;
- (const void *)list = sptr;
- size = list->count;
- }
+ /* Determine the number of elements */
+ size = _A_CSET_FROM_VOID(sptr)->count;
if((size >= 1)) {
/* Perform validation of the inner elements */