[Numpy-svn] r8666 - branches/1.5.x/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Wed Aug 25 07:33:54 CDT 2010


Author: rgommers
Date: 2010-08-25 07:33:53 -0500 (Wed, 25 Aug 2010)
New Revision: 8666

Modified:
   branches/1.5.x/numpy/core/include/numpy/npy_3kcompat.h
Log:
BUG: (backport of r8665) Fix bug on Windows in fromfile/tofile. Closes #1583. Thanks to C. Gohkle.

Modified: branches/1.5.x/numpy/core/include/numpy/npy_3kcompat.h
===================================================================
--- branches/1.5.x/numpy/core/include/numpy/npy_3kcompat.h	2010-08-25 12:30:32 UTC (rev 8665)
+++ branches/1.5.x/numpy/core/include/numpy/npy_3kcompat.h	2010-08-25 12:33:53 UTC (rev 8666)
@@ -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