Commit 080b5989 authored by Neal Norwitz's avatar Neal Norwitz

Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.

parent 7dbd2a37
......@@ -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;
......
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