Re: [GD-Windows] Compiler code gen
Brought to you by:
vexxed72
From: Brett B. <res...@ga...> - 2004-11-30 00:20:06
|
>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 |