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

numpy-svn@scip... numpy-svn@scip...
Wed Aug 25 07:30:32 CDT 2010


Author: rgommers
Date: 2010-08-25 07:30:32 -0500 (Wed, 25 Aug 2010)
New Revision: 8665

Modified:
   trunk/numpy/core/include/numpy/npy_3kcompat.h
Log:
BUG: Fix bug on Windows in fromfile/tofile. Closes #1583. Thanks to C. Gohkle.

Modified: trunk/numpy/core/include/numpy/npy_3kcompat.h
===================================================================
--- trunk/numpy/core/include/numpy/npy_3kcompat.h	2010-08-25 11:23:07 UTC (rev 8664)
+++ trunk/numpy/core/include/numpy/npy_3kcompat.h	2010-08-25 12:30:32 UTC (rev 8665)
@@ -178,7 +178,11 @@
     }
     fd2 = PyNumber_AsSsize_t(ret, NULL);
     Py_DECREF(ret);
+#ifdef _WIN32
+    return _fdopen(fd2, mode);
+#else
     return fdopen(fd2, mode);
+#endif
 }
 #endif
 



More information about the Numpy-svn mailing list