Re: Compiler code gen
"Javier Arevalo" <[email protected]> Tue, 30 Nov 2004 19:54:49 +0100
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Message-ID | <[email protected]> |
Jon Watte wrote: >> I changed my va_arg(ap, float) to va_arg(ap, double) and it works >> now. Thanks! I think it's questionable that CodeWarrior doesn't do >> the right thing when retrieving a float from from va_arg, but maybe >> they have a good reason for doing it that way... > > Are you saying it's bad of CodeWarrior to follow the language > standard, just like all other compilers? I guess his point is that va_arg(ap, float) as defined is always going to do the wrong thing because variable argument lists can never contain floats. I don't know how that could be fixed, considering that va_arg() is essentially a macro hack created to avoid adding language constructs. CodeWarrior is definitely innocent here. -- Javier Arevalo Pyro Studios ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Gamedevlists-windows mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=555