From 044d8a30cf0e628f1bf0b7560bd90689ea11d0ee Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Tue, 30 Dec 2008 05:24:11 +0000 Subject: Force at least 3 digits for the exponent on windows and python < 2.6. --- numpy/core/src/npy_format.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'numpy') diff --git a/numpy/core/src/npy_format.c b/numpy/core/src/npy_format.c index b463077aa..606fbfeb5 100644 --- a/numpy/core/src/npy_format.c +++ b/numpy/core/src/npy_format.c @@ -4,7 +4,12 @@ The exponent always contains at least two digits, and only as many more digits as necessary to represent the exponent. */ +/* We force 3 digits on windows for python < 2.6 for compatibility reason */ +#ifdef MS_WIN32 && PY_VERSION_HEX < 0x02060000 +#define MIN_EXPONENT_DIGITS 3 +#else #define MIN_EXPONENT_DIGITS 2 +#endif /* Ensure that any exponent, if present, is at least MIN_EXPONENT_DIGITS in length. */ -- cgit v1.2.1