diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-30 15:49:48 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-09-30 15:49:47 (GMT) |
commit | c9a413ede47171a224c72dd34122005170caaad4 (patch) | |
tree | 8012e2aae93f7b0c4f94e819112effa5ef4f24e1 | |
parent | efe74b6369a8d08f27c69703fcc1686966e51068 (diff) | |
download | cpython-c9a413ede47171a224c72dd34122005170caaad4.zip cpython-c9a413ede47171a224c72dd34122005170caaad4.tar.gz cpython-c9a413ede47171a224c72dd34122005170caaad4.tar.bz2 |
bpo-38321: Fix PyCStructUnionType_update_stgdict() warning (GH-16492)
bpo-22273, bpo-38321: Fix following warning:
modules\_ctypes\stgdict.c(704):
warning C4244: 'initializing': conversion from 'Py_ssize_t' to 'int', possible loss of data
-rw-r--r-- | Modules/_ctypes/stgdict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c index 947e9c2..b794f10 100644 --- a/Modules/_ctypes/stgdict.c +++ b/Modules/_ctypes/stgdict.c @@ -701,7 +701,7 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct assert(actual_type_index <= MAX_ELEMENTS); } else { - int length = dict->length; + Py_ssize_t length = dict->length; StgDictObject *edict; edict = PyType_stgdict(dict->proto); |