Xref: utzoo comp.unix.microport:547 comp.bugs.sys5:436 Path: utzoo!mnetor!uunet!littlei!vrs From: vrs@littlei.UUCP (vrs) Newsgroups: comp.unix.microport,comp.bugs.sys5 Subject: Re: 386/ix bug on doubles inside if-statement ? Message-ID: <266@gandalf.littlei.UUCP> Date: 27 Apr 88 13:49:50 GMT References: <672@altger.UUCP> Reply-To: vrs@vrs.UUCP (Vincent R. Slyngstad) Organization: Intel Corp., ISO Systems Development, Hillsboro, OR Lines: 15 Summary: Yes Yes, I have seen this problem. The compiler cannot cope with two functions returning float/double in the relational expression. It seems to handle other kinds of floating point operands better, so when I need a work-around I rewrite if (f(x) < g(y)) ... as { double t = f(x); if (t < g(y)) ... } Being sure, of course, to make the result more readble than this. There's a belief locally that this is fixed in V.3.1 (and later?) cc for the 386. Vince