On 8 Dec 2000 10:53:51 -0500, Warp wrote:
>Chris Huff <chr### [at] maccom> wrote:
>: SecondParam = (int)Parse_Float();
>
> I'm right now just reading both parameters to get on with my code, but
>I have a bad problem with the Parse_Float() function.
> For some reason it always returns 1026048. For both parameters. Always.
Did you #include "express.h" in your source file? A Failure to properly
declare a function returning a non-integer often leads to strange
results like this.
The default CFLAGS setting for povray is also a bit conservative on
enabling warnings. If you are using gcc, I recommend adding
-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs
at least for your own source files.
hp
--
_ | Peter J. Holzer | Es war nicht Gegenstand der Abstimmung zu
| | | hjp### [at] wsracat | Zahlen neu festzulegen.
__/ | http://www.hjp.at/ | -- Johannes Schwenke <jby### [at] ginkode>
Post a reply to this message
|