mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
typos in ctypes Module
This commit is contained in:
parent
1ef9c837b7
commit
cf4ad76a0a
1 changed files with 2 additions and 2 deletions
|
@ -477,7 +477,7 @@ CDataType_from_buffer(PyObject *type, PyObject *args)
|
||||||
|
|
||||||
if (offset < 0) {
|
if (offset < 0) {
|
||||||
PyErr_SetString(PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError,
|
||||||
"offset cannit be negative");
|
"offset cannot be negative");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (dict->size > buffer_len - offset) {
|
if (dict->size > buffer_len - offset) {
|
||||||
|
@ -533,7 +533,7 @@ CDataType_from_buffer_copy(PyObject *type, PyObject *args)
|
||||||
|
|
||||||
if (offset < 0) {
|
if (offset < 0) {
|
||||||
PyErr_SetString(PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError,
|
||||||
"offset cannit be negative");
|
"offset cannot be negative");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue