POV-Ray : Newsgroups : povray.programming : POV-Ray 3.5 for AmigaOS : Re: Bah. Server Time
1 Jul 2024 06:32:50 EDT (-0400)
  Re: Bah.  
From: Thorsten Froehlich
Date: 3 Jun 2004 09:21:18
Message: <40bf25ce$1@news.povray.org>
In article <40bebe43$1@news.povray.org> , Dan P <dan### [at] yahoocom>
wrote:

> Those warnings bug me, so I'm going to fix them. As a rule, I use
> floor() and cast it to an int when I'm going from a double to an
> integer. I think that is the default behavior anyway so I'm going to add
> the necessary code to make it compile cleanly (at least, on this platform).

Argh!  Don't do something like that, it is plain wrong!  If you compiler
issues nonsensical warnings, the right thing to do is to disable them, not
to destroy your source code!

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.