From: Antoine Pitrou Date: Mon, 1 Jun 2009 23:23:16 +0000 (+0000) Subject: Fix compilation error with gcc 4.3.2 X-Git-Tag: v2.7a1~1048 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25de0dd89b902da57a3fe5bcdccbf21a3f8db27a;p=thirdparty%2FPython%2Fcpython.git Fix compilation error with gcc 4.3.2 --- diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 4cbb35d7ea4d..21396ff6d9aa 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -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;