Re: [GD-Windows] Compiler code gen
Brought to you by:
vexxed72
From: Javier A. <ja...@py...> - 2004-11-30 18:50:51
|
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 |