delorie.com/archives/browse.cgi | search |
From: | Martin Stromberg <eplmst AT epl DOT ericsson DOT se> |
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: | <Pine.SUN.3.91.1020530075412.11104C-100000@is> from "Eli Zaretskii" at May 30, 2002 08:00:09 AM |
X-Mailer: | ELM [version 2.5 PL3] |
MIME-Version: | 1.0 |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |