]> granicus.if.org Git - python/commitdiff
Merged revisions 73129 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 1 Jun 2009 23:29:07 +0000 (23:29 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 1 Jun 2009 23:29:07 +0000 (23:29 +0000)
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
........

Objects/frameobject.c

index a49499286c04a329181e716939b7e61c50e9843e..664dc2b1cd9ca7b6f427d6958f668d081fe87f3e 100644 (file)
@@ -130,8 +130,10 @@ frame_setlineno(PyFrameObject *f, PyObject* p_new_lineno)
        else {
                /* Find the bytecode offset for the start of the given
                 * line, or the first code-owning line after it. */
+               char *tmp;
                PyBytes_AsStringAndSize(f->f_code->co_lnotab,
-                                       &(char*)lnotab, &lnotab_len);
+                                       &tmp, &lnotab_len);
+               lnotab = (unsigned char *) tmp;
                addr = 0;
                line = f->f_code->co_firstlineno;
                new_lasti = -1;