Revision: 4447
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4447&view=rev
Author:   mdboom
Date:     2007-11-26 08:59:29 -0800 (Mon, 26 Nov 2007)

Log Message:
-----------
Fix compile error on 64-bit platforms.

Modified Paths:
--------------
    branches/transforms/src/_path.cpp

Modified: branches/transforms/src/_path.cpp
===================================================================
--- branches/transforms/src/_path.cpp   2007-11-26 16:52:53 UTC (rev 4446)
+++ branches/transforms/src/_path.cpp   2007-11-26 16:59:29 UTC (rev 4447)
@@ -696,9 +696,10 @@
       f = *(double*)(row1);
     }
 
-    result = (PyArrayObject*)PyArray_FromDimsAndDataAndDescr
-      (PyArray_NDIM(vertices), PyArray_DIMS(vertices), 
-       PyArray_DescrFromType(PyArray_DOUBLE), NULL);
+    result = (PyArrayObject*)PyArray_NewFromDescr
+      (&PyArray_Type, PyArray_DescrFromType(PyArray_DOUBLE), 
+       PyArray_NDIM(vertices), PyArray_DIMS(vertices), 
+       NULL, NULL, 0, NULL);
     if (PyArray_NDIM(vertices) == 2) {
       size_t n = PyArray_DIM(vertices, 0);
       char* vertex_in = PyArray_BYTES(vertices);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to