mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
bpo-38321: Fix _testcapimodule.c warning (GH-16494)
Fix the following warning: modules\_testcapimodule.c(6409): warning C4146: unary minus operator applied to unsigned type, result still unsigned
This commit is contained in:
parent
bcda460baf
commit
aca8c406ad
1 changed files with 2 additions and 2 deletions
|
@ -1952,7 +1952,7 @@ unicode_asutf8andsize(PyObject *self, PyObject *args)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
buffer = PyUnicode_AsUTF8AndSize(unicode, &utf8_len);
|
buffer = PyUnicode_AsUTF8AndSize(unicode, &utf8_len);
|
||||||
if (buffer == NULL) {
|
if (buffer == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -6406,7 +6406,7 @@ static PyType_Spec HeapCTypeWithDict_spec = {
|
||||||
|
|
||||||
static struct PyMemberDef heapctypewithnegativedict_members[] = {
|
static struct PyMemberDef heapctypewithnegativedict_members[] = {
|
||||||
{"dictobj", T_OBJECT, offsetof(HeapCTypeWithDictObject, dict)},
|
{"dictobj", T_OBJECT, offsetof(HeapCTypeWithDictObject, dict)},
|
||||||
{"__dictoffset__", T_PYSSIZET, -sizeof(void*), READONLY},
|
{"__dictoffset__", T_PYSSIZET, -(Py_ssize_t)sizeof(void*), READONLY},
|
||||||
{NULL} /* Sentinel */
|
{NULL} /* Sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue