Update of /cvsroot/cppunit/cppunit/include/cppunit
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18998/include/cppunit
Modified Files:
TestAssert.h
Log Message:
* include/cppunit/TestAssert.h: fixed portability bug pointed out by
Neil Ferguson.
Index: TestAssert.h
===================================================================
RCS file: /cvsroot/cppunit/cppunit/include/cppunit/TestAssert.h,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** TestAssert.h 6 Nov 2004 09:05:45 -0000 1.26
--- TestAssert.h 8 Nov 2004 20:12:58 -0000 1.27
***************
*** 77,81 ****
#endif // #ifdef DBL_DIG
char buffer[128];
! sprintf(buffer, "%.*g", DBL_DIG, x);
return buffer;
}
--- 77,81 ----
#endif // #ifdef DBL_DIG
char buffer[128];
! sprintf(buffer, "%.*g", precision, x);
return buffer;
}
|