Commit 45bae08c authored by Lev Walkin's avatar Lev Walkin Committed by GitHub

Merge pull request #214 from brchiu/fix_vlm_issue_211

Fix issue 211
parents a4f8e94b 3ed43b25
......@@ -207,7 +207,9 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) {
terminal = WITH_MODULE_NAMESPACE(
expr->module, expr_ns,
asn1f_find_terminal_type_ex(arg->asn, expr_ns, expr));
(expr->meta_type == AMT_TYPEREF) ?
asn1f_lookup_symbol_ex(arg->asn, expr_ns, expr, expr->reference) :
asn1f_find_terminal_type_ex(arg->asn, expr_ns, expr));
if(_format == TNF_RSAFE) {
if(terminal && terminal->expr_type & ASN_CONSTR_MASK) {
......
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