RE: Compiler code gen

"Jon Watte" <[email protected]> Tue, 30 Nov 2004 09:15:02 -0800
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
> > 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...


Are you saying it's bad of CodeWarrior to follow the language standard, just
like all other compilers?


Cheers,

			/ h+



-------------------------------------------------------
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