From: Martin Stromberg Message-Id: <200205300710.JAA11953@lws256.lu.erisoft.se> Subject: Re: Patches for building with gcc 3.1 - tests chunk To: djgpp-workers AT delorie DOT com Date: Thu, 30 May 2002 09:10:50 +0200 (MET DST) In-Reply-To: from "Eli Zaretskii" at May 30, 2002 08:00:09 AM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Eli said: > > - urand = ((double)rand()) / RAND_MAX; > > + urand = ((double)(long)rand()) / RAND_MAX; > > I don't understand the need for this change. What's wrong with the > original code, exactly? Nobody does right now, I think. Flamebait: As gcc seems to like to emit useless warnings, perhaps this is another one. Right, MartinS