From: fennecdjay Date: Thu, 7 Nov 2024 05:50:22 +0000 (+0100) Subject: :fire: just clean validate.c a bit X-Git-Tag: nightly~3 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=c197c8b5247fa433ced98e918f14f955d19d6c7f;p=gwion.git :fire: just clean validate.c a bit --- diff --git a/src/parse/validate.c b/src/parse/validate.c index 4fc3d029..7ccf6cfd 100644 --- a/src/parse/validate.c +++ b/src/parse/validate.c @@ -43,11 +43,9 @@ ANN static bool validate_specialized_list(Validate *a, Specialized_List b) { } ANN static bool validate_tmplarg(Validate *a, TmplArg *b) { - bool ret = true; if (b->type == tmplarg_td) - CHECK_RET(validate_type_decl(a, b->d.td), ret); - else CHECK_RET(validate_exp(a, b->d.exp), ret); - return ret; + return validate_type_decl(a, b->d.td); + return validate_exp(a, b->d.exp); } ANN static bool validate_tmplarg_list(Validate *a, TmplArg_List b) {