From: Neal Norwitz Date: Sat, 9 Jun 2007 04:48:22 +0000 (+0000) Subject: Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error. X-Git-Tag: v2.6a1~1640 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=080b598990aae43b2ee4880d98b1a575fae2a778;p=python Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error. --- diff --git a/Python/peephole.c b/Python/peephole.c index 71113316bb..286ac29b39 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;