Scientific Operations Bellum Gratia Artis

testing - 2015 - September - this message

[ previous , next ]

Subject: Re: [9fans] kenc vlong double

From: erik quanstrom <quanstro@[REDACTED]>
Date: Sun, 13 Sep 2015 11:21:10 -0700

> --- a/sys/src/cmd/cc/com.c Sun Sep 13 13:51:00 2015 +0200
> +++ b/sys/src/cmd/cc/com.c Sun Sep 13 19:59:43 2015 +0200
> @@ -182,8 +182,8 @@
> r = new1(OCAST, n->right, Z);
> r->type = t;
> n->right = r;
> - n->type = t;
> }
> + n->type = t;
> break;

isn't the && !mixedasop() added to the condition the problem:
the cast should not be elided if it's a float/double. though 8c
might get this wrong for other reasons.

- erik