Revision: 4445
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4445&view=rev
Author: mdboom
Date: 2007-11-26 08:43:19 -0800 (Mon, 26 Nov 2007)
Log Message:
-----------
Fix compilation 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 15:46:17 UTC (rev 4444)
+++ branches/transforms/src/_path.cpp 2007-11-26 16:43:19 UTC (rev 4445)
@@ -696,8 +696,9 @@
f = *(double*)(row1);
}
- result = (PyArrayObject*)PyArray_FromDims
- (PyArray_NDIM(vertices), PyArray_DIMS(vertices), PyArray_DOUBLE);
+ result = (PyArrayObject*)PyArray_FromDimsAndDataAndDescr
+ (PyArray_NDIM(vertices), PyArray_DIMS(vertices),
+ PyArray_DescrFromType(PyArray_DOUBLE), 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