Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: Fabrice ILPONSE , djgpp AT delorie DOT com Date: Mon, 16 Mar 1998 11:18:45 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: bug??!!?? using cast from double to int In-reply-to: <350CEF11.DCD@trash.lip6.fr> Precedence: bulk Fabrice ILPONSE wrote: > I've downloaded the "ncurve3" program from that create curves. It uses > doubles for coordonates but I cast them to int for my purpose. > Sometimes, my prog exist on FPE. I don't know why! (it's really the > cast) . So i changed the doubles to floats and it works well. > Question: is it a gcc bug? Are you sure that that's the problem? Are the values correct, I mean: are valid numbers? (no infinite, etc). SET ------------------------------------ 0 -------------------------------- Visit my home page: http://set-soft.home.ml.org/ or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(541) 759 0013