]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix compilation error with gcc 4.3.2
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 1 Jun 2009 23:23:16 +0000 (23:23 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 1 Jun 2009 23:23:16 +0000 (23:23 +0000)
Objects/frameobject.c

index 4cbb35d7ea4db8e3b46cf792982fc4f406c84db9..21396ff6d9aad1fa6b337eb54bdda1865331c329 100644 (file)
@@ -147,8 +147,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;
                PyString_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;