summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2004-11-08 19:12:58 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2004-11-08 19:12:58 +0000
commit82e2fa96eada0b1c33b188c2e6e5f5cc8656aaa9 (patch)
treef2e054b40250dd3b033b24e5f7626d3e72245138 /include/cppunit
parenta3f4660a90cd14b3ac345e06dcee24ff3570539c (diff)
downloadcppunit-82e2fa96eada0b1c33b188c2e6e5f5cc8656aaa9.tar.gz
include/cppunit/TestAssert.h: fixed portability bug pointed out by
Neil Ferguson.
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/TestAssert.h2
1 files changed, 1 insertions, 1 deletions
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;
}
};