Commit aca8c406 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

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
parent bcda460b
...@@ -6406,7 +6406,7 @@ static PyType_Spec HeapCTypeWithDict_spec = { ...@@ -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 */
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment