From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <0232aa110f8423b8381e009b6cda7cef@terzarima.net> From: Charles Forsyth Date: Tue, 1 Dec 2009 21:35:54 +0000 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] compiler double bug. Topicbox-Message-UUID: a65f0d0a-ead5-11e9-9d60-3106f5b1d025 those fixes really don't seem right to me. the problem is in getival or its callers. somewhere along the way, ULONG_MAX is converted to double and then back to int (directly or indirectly). that yields a trap. now, in the case int x; x = (uint)d; the compiler is wrong to eliminate the cast, but then again, if x isn't uint that's not going to work properly anyway (since x will go negative for big enough values of d). what's getival? there isn't one in the awk copies i can see.