Re: Compiler code gen
"Brett Bibby" <[email protected]> Tue, 30 Nov 2004 08:24:33 +0800
| Newsgroups | gmane.games.devel.windows |
|---|---|
| Organization | GameBrains |
| Message-ID | <[email protected]> |
>Jon Watte wrote: > I believe this is type promotion, as defined by the C/C++ language. You > should get the float arguments back out using va_arg(double). Sadly, the > C++ standards document just punts to the C standard document, so I can't > give you a definitive reference. 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... Cheers, Brett ------------------------------------------------------- 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