From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from duke.felloff.net ([216.126.196.34]) by ewsd; Tue Jun 18 10:26:13 EDT 2019 Message-ID: <8AD3D17625381BC51319997E617EF75A@felloff.net> Date: Tue, 18 Jun 2019 16:26:05 +0200 From: cinap_lenrek@felloff.net To: 9front@9front.org Subject: Re: [9front] Ape: Fix assert warnings. In-Reply-To: 20190617123612.046f000c6b470aa989c94fac@eigenstate.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: shared open-source API interface deep-learning blockchain replication potential fix that makes constant (void) casts non-ops. this works as cgen() ignores nodes with nil type. --- a/sys/src/cmd/cc/scon.c Tue Jun 18 13:29:29 2019 +0200 +++ b/sys/src/cmd/cc/scon.c Tue Jun 18 16:15:00 2019 +0200 @@ -49,8 +49,11 @@ break; case OCAST: - if(et == TVOID) + if(et == TVOID){ + n->left = Z; + n->type = T; return; + } et = l->type->etype; if(isf) { if(typefd[et]) -- cinap