diff options
author | ram vikram singh <ramvikrams243@gmail.com> | 2023-01-24 09:29:22 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-24 09:29:22 (GMT) |
commit | 7f95ec3e7405ea5f44adc3584e297a3191118f32 (patch) | |
tree | ae210c0f81259d13593badc52ee9d09d8c06f178 /Modules/_testcapimodule.c | |
parent | e244401ce508ad391295beb636e499fcc6797a2a (diff) | |
download | cpython-7f95ec3e7405ea5f44adc3584e297a3191118f32.zip cpython-7f95ec3e7405ea5f44adc3584e297a3191118f32.tar.gz cpython-7f95ec3e7405ea5f44adc3584e297a3191118f32.tar.bz2 |
gh-101152: Implement PEP 699 (GH-101193)
Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
Co-authored-by: Ken Jin <kenjin@python.org>
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 486988b..46c025b 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -2148,7 +2148,10 @@ dict_get_version(PyObject *self, PyObject *args) if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict)) return NULL; + _Py_COMP_DIAG_PUSH + _Py_COMP_DIAG_IGNORE_DEPR_DECLS version = dict->ma_version_tag; + _Py_COMP_DIAG_POP static_assert(sizeof(unsigned long long) >= sizeof(version), "version is larger than unsigned long long"); |