Skip to content

Commit 18d41ff

Browse files
committed
Fix WriteBytes()
1 parent 6307895 commit 18d41ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/bytesobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4034,7 +4034,7 @@ PyBytesWriter_WriteBytes(PyBytesWriter *writer,
40344034
size_t len = strlen(bytes);
40354035
if (len > (size_t)PY_SSIZE_T_MAX) {
40364036
PyErr_NoMemory();
4037-
return NULL;
4037+
return -1;
40384038
}
40394039
size = (Py_ssize_t)len;
40404040
}

0 commit comments

Comments
 (0)