Mercurial > cpython-lru_cache-weakref
diff Python/peephole.c @ 42006:16cee674a410 legacy-trunk
Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 09 Jun 2007 04:48:22 +0000 |
| parents | 4e3481961fbb |
| children | dc5b0107294c |
line wrap: on
line diff
--- a/Python/peephole.c Sat Jun 09 03:36:34 2007 +0000 +++ b/Python/peephole.c Sat Jun 09 04:48:22 2007 +0000 @@ -308,7 +308,7 @@ /* 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;
