diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-11-08 19:12:58 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-11-08 19:12:58 +0000 |
| commit | 82e2fa96eada0b1c33b188c2e6e5f5cc8656aaa9 (patch) | |
| tree | f2e054b40250dd3b033b24e5f7626d3e72245138 | |
| parent | a3f4660a90cd14b3ac345e06dcee24ff3570539c (diff) | |
| download | cppunit-82e2fa96eada0b1c33b188c2e6e5f5cc8656aaa9.tar.gz | |
include/cppunit/TestAssert.h: fixed portability bug pointed out by
Neil Ferguson.
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | include/cppunit/TestAssert.h | 2 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2004-11-08 Baptiste Lepilleur <gaiacrtn@free.fr> + + * include/cppunit/TestAssert.h: fixed portability bug pointed out by + Neil Ferguson. + 2004-11-06 Baptiste Lepilleur <gaiacrtn@free.fr> * include/cppunit/TestAssert.h: integrated Neil Ferguson patch for high @@ -6,6 +11,9 @@ * include/cppunit/Portability.h: fixed EVC++ 4 detection. + * src/cppunit/Win32DynamicLibraryManager.cpp: integrated patch #1024428, + MinGW compilation under Windows XP. + 2004-11-05 Baptiste Lepilleur <gaiacrtn@free.fr> * include/cppunit/TestAssert.h: diff --git a/include/cppunit/TestAssert.h b/include/cppunit/TestAssert.h index 8348a1b..14b9aff 100644 --- a/include/cppunit/TestAssert.h +++ b/include/cppunit/TestAssert.h @@ -76,7 +76,7 @@ struct assertion_traits<double> const int precision = 15; #endif // #ifdef DBL_DIG char buffer[128]; - sprintf(buffer, "%.*g", DBL_DIG, x); + sprintf(buffer, "%.*g", precision, x); return buffer; } }; |
