Skip to content
This repository was archived by the owner on Feb 18, 2020. It is now read-only.

Commit b0230fb

Browse files
CArray_Print offset fix
1 parent 5d1ebf7 commit b0230fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/carray.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ _print_recursive(CArray * array, CArrayIterator * iterator, int * index, int cur
11361136
if(current_dim < array->ndim-1) {
11371137
*index = 0;
11381138
for (i = *index; i < array->dimensions[current_dim]; i++) {
1139-
if (iterator->index >= CArray_DIMS(array)[current_dim] && !current_dim) {
1139+
if (iterator->index >= CArray_DIMS(array)[CArray_NDIM(array)-1] && !current_dim) {
11401140
for (j = 0; j < current_dim + 1; j++) {
11411141
php_printf(" ");
11421142
}

0 commit comments

Comments
 (0)