fix grammr in error messages in overlapped.c (GH-3095)
This commit is contained in:
parent
7b40cb7293
commit
d83c23b2db
|
@ -837,7 +837,7 @@ Overlapped_WriteFile(OverlappedObject *self, PyObject *args)
|
||||||
#if SIZEOF_SIZE_T > SIZEOF_LONG
|
#if SIZEOF_SIZE_T > SIZEOF_LONG
|
||||||
if (self->write_buffer.len > (Py_ssize_t)ULONG_MAX) {
|
if (self->write_buffer.len > (Py_ssize_t)ULONG_MAX) {
|
||||||
PyBuffer_Release(&self->write_buffer);
|
PyBuffer_Release(&self->write_buffer);
|
||||||
PyErr_SetString(PyExc_ValueError, "buffer to large");
|
PyErr_SetString(PyExc_ValueError, "buffer too large");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -893,7 +893,7 @@ Overlapped_WSASend(OverlappedObject *self, PyObject *args)
|
||||||
#if SIZEOF_SIZE_T > SIZEOF_LONG
|
#if SIZEOF_SIZE_T > SIZEOF_LONG
|
||||||
if (self->write_buffer.len > (Py_ssize_t)ULONG_MAX) {
|
if (self->write_buffer.len > (Py_ssize_t)ULONG_MAX) {
|
||||||
PyBuffer_Release(&self->write_buffer);
|
PyBuffer_Release(&self->write_buffer);
|
||||||
PyErr_SetString(PyExc_ValueError, "buffer to large");
|
PyErr_SetString(PyExc_ValueError, "buffer too large");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue