diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-06-09 04:48:22 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-06-09 04:48:22 (GMT) |
commit | 080b598990aae43b2ee4880d98b1a575fae2a778 (patch) | |
tree | 583e7131d0606155aeab9ac5b286fcbe0a7c3919 /Python | |
parent | 7dbd2a3720be7f54068f8a8f3fa2176dd2ab1ebe (diff) | |
download | cpython-080b598990aae43b2ee4880d98b1a575fae2a778.zip cpython-080b598990aae43b2ee4880d98b1a575fae2a778.tar.gz cpython-080b598990aae43b2ee4880d98b1a575fae2a778.tar.bz2 |
Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/peephole.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/peephole.c b/Python/peephole.c index 7111331..286ac29 100644 --- a/Python/peephole.c +++ b/Python/peephole.c @@ -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; |