1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-09 13:29:24 -04:00
ports/graphics/py-visual/files/patch-src-python-num_util.cpp
Nicola Vitale 2e7df8936f - Updated to 4.b14
- It compiles on amd64 too
2007-03-09 17:15:06 +00:00

11 lines
439 B
C++

--- src/python/num_util.cpp Thu Nov 30 07:06:03 2006
+++ src/python/num_util.cpp.port Thu Mar 8 11:18:50 2007
@@ -230,7 +230,7 @@
PyErr_SetString(PyExc_ValueError, "expected a PyArrayObject");
throw_error_already_set();
}
- int* dims_ptr = PyArray_DIMS(arr.ptr());
+ npy_intp* dims_ptr = PyArray_DIMS(arr.ptr());
int the_rank = rank(arr);
for (int i = 0; i < the_rank; i++){
out_dims.push_back(*(dims_ptr + i));