diff options
| author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-04 12:59:15 +0000 |
|---|---|---|
| committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-01-04 12:59:15 +0000 |
| commit | d4a9fa435abe536522fb0343710feac61914ce00 (patch) | |
| tree | bc3eca8520bc3115c78193f855a198077d4494bb /Objects/codeobject.c | |
| parent | 6509b37bb8032193baa39e2526501b96bc763b75 (diff) | |
| download | cpython-d4a9fa435abe536522fb0343710feac61914ce00.tar.gz | |
Issue #9566: use Py_ssize_t instead of int
Diffstat (limited to 'Objects/codeobject.c')
| -rw-r--r-- | Objects/codeobject.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 54c23aec36..e9cae134c0 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -492,7 +492,7 @@ PyTypeObject PyCode_Type = { int PyCode_Addr2Line(PyCodeObject *co, int addrq) { - int size = PyBytes_Size(co->co_lnotab) / 2; + Py_ssize_t size = PyBytes_Size(co->co_lnotab) / 2; unsigned char *p = (unsigned char*)PyBytes_AsString(co->co_lnotab); int line = co->co_firstlineno; int addr = 0; @@ -510,7 +510,8 @@ PyCode_Addr2Line(PyCodeObject *co, int addrq) int _PyCode_CheckLineNumber(PyCodeObject* co, int lasti, PyAddrPair *bounds) { - int size, addr, line; + Py_ssize_t size; + int addr, line; unsigned char* p; p = (unsigned char*)PyBytes_AS_STRING(co->co_lnotab); |
