Commit f1a51236 authored by Lev Walkin's avatar Lev Walkin

some gcc 4.x compatibility in constraints checking code

parent 4b4c146c
...@@ -524,14 +524,9 @@ emit_size_determination_code(arg_t *arg, asn1p_expr_type_e etype) { ...@@ -524,14 +524,9 @@ emit_size_determination_code(arg_t *arg, asn1p_expr_type_e etype) {
break; break;
case ASN_CONSTR_SET_OF: case ASN_CONSTR_SET_OF:
case ASN_CONSTR_SEQUENCE_OF: case ASN_CONSTR_SEQUENCE_OF:
OUT("{ /* Determine the number of elements */\n"); OUT("/* Determine the number of elements */\n");
INDENT(+1); OUT("size = _A_C%s_FROM_VOID(sptr)->count;\n",
OUT("const A_%s_OF(void) *list;\n", etype==ASN_CONSTR_SET_OF?"SET":"SEQUENCE");
etype==ASN_CONSTR_SET_OF?"SET":"SEQUENCE");
OUT("(const void *)list = sptr;\n");
OUT("size = list->count;\n");
INDENT(-1);
OUT("}\n");
break; break;
case ASN_BASIC_OCTET_STRING: case ASN_BASIC_OCTET_STRING:
OUT("size = st->size;\n"); OUT("size = st->size;\n");
......
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