diff options
author | Teddy <ted.sybil@gmail.com> | 2014-04-06 06:48:41 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2014-04-06 06:48:41 +0800 |
commit | 4f0f6f064fc5c878bee2f614e1296b14e66fef8d (patch) | |
tree | 2daed305d65773634cb3accb28ecd14133c1ccc9 /semantics.c | |
parent | 25e023cf554b0ccafa113296da090fbb277d576e (diff) |
remove redundant syntax in `cibic.y`complex_pointer
Diffstat (limited to 'semantics.c')
-rw-r--r-- | semantics.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/semantics.c b/semantics.c index 00f956c..81cbf11 100644 --- a/semantics.c +++ b/semantics.c @@ -481,7 +481,7 @@ CType_t semantics_type_name(CNode *p, CScope_t scope) { CVar_t semantics_params(CNode *p, CScope_t scope) { CHECK_TYPE(p, PARAMS); p = p->chd; - if (p->type == NOP) return NULL; /* void arguments */ + if (!p) return NULL; /* no parameters */ CVar_t params = semantics_p_decl(p, scope), tail = params; #ifdef CIBIC_DEBUG CTable_t tparams = ctable_create(bkdr_hash, ctable_cvar_print); |