aboutsummaryrefslogtreecommitdiff
path: root/semantics.c
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2014-04-06 06:48:41 +0800
committerTeddy <ted.sybil@gmail.com>2014-04-06 06:48:41 +0800
commit4f0f6f064fc5c878bee2f614e1296b14e66fef8d (patch)
tree2daed305d65773634cb3accb28ecd14133c1ccc9 /semantics.c
parent25e023cf554b0ccafa113296da090fbb277d576e (diff)
remove redundant syntax in `cibic.y`complex_pointer
Diffstat (limited to 'semantics.c')
-rw-r--r--semantics.c2
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);