Skip to content

Commit 105723d

Browse files
comment fix
1 parent 9df5dfd commit 105723d

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
@@ -140,7 +140,7 @@ JSObject *BufferType::toJsTypedArray(JSContext *cx, PyObject *pyObject) {
140140
// the buffer is immutable (e.g., Python `bytes` type is read-only)
141141
PyErr_Clear(); // a PyExc_BufferError was raised
142142

143-
if (PyObject_GetBuffer(pyObject, view, PyBUF_ND /* C-contiguous and writable */ | PyBUF_FORMAT) < 0) {
143+
if (PyObject_GetBuffer(pyObject, view, PyBUF_ND /* C-contiguous */ | PyBUF_FORMAT) < 0) {
144144
return nullptr; // a PyExc_BufferError was raised again
145145
}
146146

0 commit comments

Comments
 (0)