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

numpy-svn@scip... numpy-svn@scip...
Tue Dec 30 01:10:11 CST 2008


Author: cdavid
Date: 2008-12-30 01:10:04 -0600 (Tue, 30 Dec 2008)
New Revision: 6276

Modified:
   branches/fix_float_format/numpy/core/src/npy_format.c
Log:
Fix conditional for min number of digits in exponent for float formatting.

Modified: branches/fix_float_format/numpy/core/src/npy_format.c
===================================================================
--- branches/fix_float_format/numpy/core/src/npy_format.c	2008-12-30 06:50:42 UTC (rev 6275)
+++ branches/fix_float_format/numpy/core/src/npy_format.c	2008-12-30 07:10:04 UTC (rev 6276)
@@ -5,7 +5,7 @@
 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
+#if defined(MS_WIN32) && (PY_VERSION_HEX < 0x02060000)
 #define MIN_EXPONENT_DIGITS 3
 #else
 #define MIN_EXPONENT_DIGITS 2



More information about the Numpy-svn mailing list