mirror of
https://github.com/python/cpython.git
synced 2025-11-01 22:21:35 +00:00
Fix compilation error with gcc 4.3.2
This commit is contained in:
parent
c01cbc42aa
commit
25de0dd89b
1 changed files with 3 additions and 1 deletions
|
|
@ -147,8 +147,10 @@ frame_setlineno(PyFrameObject *f, PyObject* p_new_lineno)
|
||||||
else {
|
else {
|
||||||
/* Find the bytecode offset for the start of the given
|
/* Find the bytecode offset for the start of the given
|
||||||
* line, or the first code-owning line after it. */
|
* line, or the first code-owning line after it. */
|
||||||
|
char *tmp;
|
||||||
PyString_AsStringAndSize(f->f_code->co_lnotab,
|
PyString_AsStringAndSize(f->f_code->co_lnotab,
|
||||||
&(char*)lnotab, &lnotab_len);
|
&tmp, &lnotab_len);
|
||||||
|
lnotab = (unsigned char *) tmp;
|
||||||
addr = 0;
|
addr = 0;
|
||||||
line = f->f_code->co_firstlineno;
|
line = f->f_code->co_firstlineno;
|
||||||
new_lasti = -1;
|
new_lasti = -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue