mirror of
https://git.freebsd.org/ports.git
synced 2025-07-09 13:29:24 -04:00
11 lines
439 B
C++
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));
|