RE: [GD-Windows] Compiler code gen
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2004-11-30 17:14:58
|
> > 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+ |