Commit b7ffad5b authored by Antoine Pitrou's avatar Antoine Pitrou

Merged revisions 73129 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r73129 | antoine.pitrou | 2009-06-02 01:23:16 +0200 (mar., 02 juin 2009) | 3 lines

  Fix compilation error with gcc 4.3.2
........
parent 8cc7d88b
...@@ -130,8 +130,10 @@ frame_setlineno(PyFrameObject *f, PyObject* p_new_lineno) ...@@ -130,8 +130,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;
PyBytes_AsStringAndSize(f->f_code->co_lnotab, PyBytes_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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment