diff options
Diffstat (limited to 'numpy/f2py/doc/multiarray/array_from_pyobj.c')
-rw-r--r-- | numpy/f2py/doc/multiarray/array_from_pyobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/doc/multiarray/array_from_pyobj.c b/numpy/f2py/doc/multiarray/array_from_pyobj.c index 03d4aacf6..237d16dbc 100644 --- a/numpy/f2py/doc/multiarray/array_from_pyobj.c +++ b/numpy/f2py/doc/multiarray/array_from_pyobj.c @@ -311,9 +311,9 @@ int check_and_fix_dimensions(const PyArrayObject* arr,const int rank,int *dims) if (arr->dimensions[i]!=dims[i]) { fprintf(stderr,"%d-th dimension must be fixed to %d but got %d\n", i,dims[i],arr->dimensions[i]); - return 1; + return 1; } - if (!dims[i]) dims[i] = 1; + if (!dims[i]) dims[i] = 1; } else dims[i] = arr->dimensions[i]; } |