Author: faridz Date: Sat Mar 15 04:14:22 2008 New Revision: 637393 URL: http://svn.apache.org/viewvc?rev=637393&view=rev Log: 2008-03-15 Farid Zaripov STDCXX-763 * src/punct.cpp (__rw_get_stdio_fmat): Always use precision in conversion from floating-point types according to resolution of the lwg issue 231. Modified: stdcxx/trunk/src/punct.cpp Modified: stdcxx/trunk/src/punct.cpp URL: http://svn.apache.org/viewvc/stdcxx/trunk/src/punct.cpp?rev=637393&r1=637392&r2=637393&view=diff ============================================================================== --- stdcxx/trunk/src/punct.cpp (original) +++ stdcxx/trunk/src/punct.cpp Sat Mar 15 04:14:22 2008 @@ -619,9 +619,7 @@ const int fltfld = fmtflags & _RWSTD_IOS_FLOATFIELD; // follows resolution of lwg issue 231 - if ( ( _RWSTD_IOS_FIXED == fltfld - || _RWSTD_IOS_SCIENTIFIC == fltfld) - && prec >= 0 || prec > 0) { + if (0 <= prec) { // 7.19.6.1, p5 of C99 specifies that, when given using the // asterisk, negative precision is treated the same as if