[Numpy-svn] r8622 - trunk/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Sat Aug 14 08:42:38 CDT 2010


Author: rgommers
Date: 2010-08-14 08:42:38 -0500 (Sat, 14 Aug 2010)
New Revision: 8622

Modified:
   trunk/numpy/core/include/numpy/ndarraytypes.h
Log:
BUG: Better format specifier for Py 2.7, 3.2 on win-amd64. Closes #1570.

Thanks to Christoph Gohlke.

Modified: trunk/numpy/core/include/numpy/ndarraytypes.h
===================================================================
--- trunk/numpy/core/include/numpy/ndarraytypes.h	2010-08-11 01:59:39 UTC (rev 8621)
+++ trunk/numpy/core/include/numpy/ndarraytypes.h	2010-08-14 13:42:38 UTC (rev 8622)
@@ -275,8 +275,12 @@
         #define NPY_MAX_INTP NPY_MAX_LONGLONG
         #define NPY_MIN_INTP NPY_MIN_LONGLONG
         #define NPY_MAX_UINTP NPY_MAX_ULONGLONG
+#ifdef _MSC_VER
+        #define NPY_INTP_FMT "lld"
+#else
         #define NPY_INTP_FMT "Ld"
 #endif
+#endif
 
 /*
  * We can only use C99 formats for npy_int_p if it is the same as



More information about the Numpy-svn mailing list