aboutsummaryrefslogtreecommitdiff
path: root/semantics.c
diff options
context:
space:
mode:
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);