Roll back asn1/gen_encode.c type safety patch
This commit is contained in:
@@ -535,8 +535,8 @@ generate_type_encode (const Symbol *s)
|
|||||||
case TChoice:
|
case TChoice:
|
||||||
fprintf (codefile,
|
fprintf (codefile,
|
||||||
"size_t ret = 0;\n"
|
"size_t ret = 0;\n"
|
||||||
"size_t l, i;\n"
|
"size_t l;\n"
|
||||||
"int e;\n\n");
|
"int i, e;\n\n");
|
||||||
fprintf(codefile, "i = 0;\n"); /* hack to avoid `unused variable' */
|
fprintf(codefile, "i = 0;\n"); /* hack to avoid `unused variable' */
|
||||||
|
|
||||||
encode_type("data", s->type, "Top");
|
encode_type("data", s->type, "Top");
|
||||||
|
Reference in New Issue
Block a user