Roll back asn1/gen_encode.c type safety patch

This commit is contained in:
Asanka Herath
2010-06-17 23:03:37 -04:00
parent 641eab32d8
commit ac26475f2c

View File

@@ -535,8 +535,8 @@ generate_type_encode (const Symbol *s)
case TChoice:
fprintf (codefile,
"size_t ret = 0;\n"
"size_t l, i;\n"
"int e;\n\n");
"size_t l;\n"
"int i, e;\n\n");
fprintf(codefile, "i = 0;\n"); /* hack to avoid `unused variable' */
encode_type("data", s->type, "Top");