diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-06-01 21:28:37 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-06-01 21:28:37 (GMT) |
commit | 24e581f7b2dbb700705c7b11c3982167ac68d4cb (patch) | |
tree | 8cc36814d81f3ad143bac22bb311ce49434995b7 /Objects/frameobject.c | |
parent | 1172999627c912b57ace149183de4a313edc74d2 (diff) | |
download | cpython-24e581f7b2dbb700705c7b11c3982167ac68d4cb.zip cpython-24e581f7b2dbb700705c7b11c3982167ac68d4cb.tar.gz cpython-24e581f7b2dbb700705c7b11c3982167ac68d4cb.tar.bz2 |
Merged revisions 73114 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73114 | amaury.forgeotdarc | 2009-06-01 22:53:18 +0200 (lun., 01 juin 2009) | 3 lines
#4547: When debugging a very large function, it was not always
possible to update the lineno attribute of the current frame.
........
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r-- | Objects/frameobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 8bb0f9c..a494992 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -69,7 +69,7 @@ frame_setlineno(PyFrameObject *f, PyObject* p_new_lineno) int new_iblock = 0; /* The new value of f_iblock */ unsigned char *code = NULL; /* The bytecode for the frame... */ Py_ssize_t code_len = 0; /* ...and its length */ - char *lnotab = NULL; /* Iterating over co_lnotab */ + unsigned char *lnotab = NULL; /* Iterating over co_lnotab */ Py_ssize_t lnotab_len = 0; /* (ditto) */ int offset = 0; /* (ditto) */ int line = 0; /* (ditto) */ @@ -131,7 +131,7 @@ frame_setlineno(PyFrameObject *f, PyObject* p_new_lineno) /* Find the bytecode offset for the start of the given * line, or the first code-owning line after it. */ PyBytes_AsStringAndSize(f->f_code->co_lnotab, - &lnotab, &lnotab_len); + &(char*)lnotab, &lnotab_len); addr = 0; line = f->f_code->co_firstlineno; new_lasti = -1; |