summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-06-01 20:53:18 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2009-06-01 20:53:18 (GMT)
commitb02ceda3a52d1ce368cd7070a1ffce021cafc250 (patch)
tree68c20c37bb374c75a8afadddfddb803fa90b3cd5 /Objects
parent09daad9825c165f844d43eee8425ab14aaefb9a9 (diff)
downloadcpython-b02ceda3a52d1ce368cd7070a1ffce021cafc250.zip
cpython-b02ceda3a52d1ce368cd7070a1ffce021cafc250.tar.gz
cpython-b02ceda3a52d1ce368cd7070a1ffce021cafc250.tar.bz2
#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')
-rw-r--r--Objects/frameobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index ad31fc5..4cbb35d 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -98,7 +98,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) */
@@ -148,7 +148,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. */
PyString_AsStringAndSize(f->f_code->co_lnotab,
- &lnotab, &lnotab_len);
+ &(char*)lnotab, &lnotab_len);
addr = 0;
line = f->f_code->co_firstlineno;
new_lasti = -1;