Skip to content

Commit 0302e65

Browse files
committed
Return None when out of bounds on non-scalar voxel type
1 parent 57754de commit 0302e65

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wrap/wrapper.i

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
return PyBool_FromLong(0);
5757
} else if ($self->value_bits() == 32) {
5858
return PyLong_FromLong(0);
59+
} else {
60+
Py_INCREF(Py_None);
61+
return Py_None;
5962
}
6063
}
6164
if ($self->value_bits() == 1) {

0 commit comments

Comments
 (0)