[Numpy-svn] r6255 - branches/fix_float_format/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Mon Dec 29 23:24:17 CST 2008


Author: cdavid
Date: 2008-12-29 23:24:11 -0600 (Mon, 29 Dec 2008)
New Revision: 6255

Modified:
   branches/fix_float_format/numpy/core/src/npy_format.c
Log:
Force at least 3 digits for the exponent on windows and python < 2.6.

Modified: branches/fix_float_format/numpy/core/src/npy_format.c
===================================================================
--- branches/fix_float_format/numpy/core/src/npy_format.c	2008-12-30 05:16:42 UTC (rev 6254)
+++ branches/fix_float_format/numpy/core/src/npy_format.c	2008-12-30 05:24:11 UTC (rev 6255)
@@ -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. */



More information about the Numpy-svn mailing list