|
From: Daniel K. O. <dan...@gm...> - 2006-02-24 12:11:13
|
Per Westermark escreveu: > %Lf specifies long double (when supported) > Which the MS runtime doesn't seem to support... from my experiences (I don't have the MS compiler, I just asked somebody else to compile some code and send me the program output and some assembly dumps), VC++ "demotes" long doubles to plain doubles in printf. But now that you mentioned %Lf, I would like to confirm with anyone here who has VC++; what does happen when trying to printf a long double on VC++? For me, it looks like VC++ tries a "magic" conversion in variadic functions, but if it is true, it may break legit code (when trying to va_arg a long double where a plain double was put). --- Daniel K. O. |