mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #9566: use Py_ssize_t instead of int
This commit is contained in:
parent
6ab8e8298e
commit
0fcab4a3ed
14 changed files with 32 additions and 33 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue