mirror of
https://github.com/python/cpython.git
synced 2025-07-27 21:24:32 +00:00
Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.
This commit is contained in:
parent
7dbd2a3720
commit
080b598990
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names,
|
|||
|
||||
/* Avoid situations where jump retargeting could overflow */
|
||||
assert(PyString_Check(code));
|
||||
codelen = PyString_Size(code);
|
||||
codelen = PyString_GET_SIZE(code);
|
||||
if (codelen > 32700)
|
||||
goto exitUnchanged;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue