Skip to content

Commit 9df5dfd

Browse files
unneeded check
1 parent f4e7923 commit 9df5dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BufferType.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ JSObject *BufferType::toJsTypedArray(JSContext *cx, PyObject *pyObject) {
147147
immutable = true;
148148
}
149149

150-
if (view->ndim != 1 && !immutable) {
150+
if (view->ndim != 1) {
151151
PyErr_SetString(PyExc_BufferError, "multidimensional arrays are not allowed");
152152
BufferType::_releasePyBuffer(view);
153153
return nullptr;

0 commit comments

Comments
 (0)