Skip to content
Snippets Groups Projects
Commit a982cddf authored by Joseph Weston's avatar Joseph Weston
Browse files

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

parent bf772d79
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ extern Format format_by_dtype[];
// following code codifies the conventions.
class Array_base {
public:
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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment