summaryrefslogtreecommitdiff
path: root/graphics/py-visual/files/patch-src-python-num_util.cpp
blob: ce341aea0855183d5ee4622832e89924bd799fc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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));