asn1: Fix IMPLICIT tagging (codegen)

This commit is contained in:
Nicolas Williams
2021-03-10 19:14:27 -06:00
parent 7f4e9db9f9
commit 05a952dbb9
5 changed files with 39 additions and 3 deletions

View File

@@ -457,7 +457,7 @@ encode_type (const char *name, const Type *t, const char *tmpstr)
* functions, and those will be adding their UNIVERSAL or whatever
* tags unlike our raw primtive codec library.
*/
replace_tag = 1;
replace_tag = is_tagged_type(t->subtype->symbol->type);
if (replace_tag)
fprintf(codefile,