Commit a982cddf authored by Joseph Weston's avatar Joseph Weston
Browse files

make `ndim_shape` a const method, as it should be

parent bf772d79
......@@ -38,7 +38,7 @@ extern Format format_by_dtype[];
// following code codifies the conventions.
class Array_base {
void ndim_shape(int *ndim, size_t **shape) {
void ndim_shape(int *ndim, size_t **shape) const {
const Py_ssize_t ob_size = ob_base.ob_size;
if (ob_size >= 0) {
if (ndim) *ndim = 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment