diff options
author | Lev Walkin <vlm@lionet.info> | 2006-03-14 11:52:12 +0000 |
---|---|---|
committer | Lev Walkin <vlm@lionet.info> | 2006-03-14 11:52:12 +0000 |
commit | c2a75094b58cc11b4985a00e3e6bb4fd341b4cb1 (patch) | |
tree | d5813e6455c049c44bdf0c2f077e652684b0b7a2 /libasn1compiler/asn1c_misc.c | |
parent | 6ec10329b9772b1f6c4f655473cb778479fb1e54 (diff) |
class field access problem
Diffstat (limited to 'libasn1compiler/asn1c_misc.c')
-rw-r--r-- | libasn1compiler/asn1c_misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libasn1compiler/asn1c_misc.c b/libasn1compiler/asn1c_misc.c index 779426aa..8805347b 100644 --- a/libasn1compiler/asn1c_misc.c +++ b/libasn1compiler/asn1c_misc.c @@ -131,6 +131,8 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) { while(top_parent->parent_expr) top_parent = top_parent->parent_expr; + DEBUG("asn1c_type_name(%s: 0x%x)", expr->Identifier, expr->expr_type); + switch(expr->expr_type) { case A1TC_REFERENCE: typename = expr->reference->components[ @@ -144,7 +146,7 @@ asn1c_type_name(arg_t *arg, asn1p_expr_t *expr, enum tnfmt _format) { */ tmp.expr = asn1f_class_access_ex(arg->asn, arg->expr->module, arg->expr, expr->reference); - if(tmp.expr) return NULL; + if(!tmp.expr) return NULL; return asn1c_type_name(&tmp, tmp.expr, _format); } |