diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2009-06-01 23:23:16 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2009-06-01 23:23:16 (GMT) |
commit | 25de0dd89b902da57a3fe5bcdccbf21a3f8db27a (patch) | |
tree | 94e76fb3e3211ccd1f7360fc1be9006a50816e49 /Objects | |
parent | c01cbc42aafb814d4f09d8add8a45effc18efb7a (diff) | |
download | cpython-25de0dd89b902da57a3fe5bcdccbf21a3f8db27a.zip cpython-25de0dd89b902da57a3fe5bcdccbf21a3f8db27a.tar.gz cpython-25de0dd89b902da57a3fe5bcdccbf21a3f8db27a.tar.bz2 |
Fix compilation error with gcc 4.3.2
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/frameobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 4cbb35d..21396ff 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; |