[Python-checkins] r73129 - python/trunk/Objects/frameobject.c
antoine.pitrou
python-checkins at python.org
Tue Jun 2 01:23:16 CEST 2009
Author: antoine.pitrou
Date: Tue Jun 2 01:23:16 2009
New Revision: 73129
Log:
Fix compilation error with gcc 4.3.2
Modified:
python/trunk/Objects/frameobject.c
Modified: python/trunk/Objects/frameobject.c
==============================================================================
--- python/trunk/Objects/frameobject.c (original)
+++ python/trunk/Objects/frameobject.c Tue Jun 2 01:23:16 2009
@@ -147,8 +147,10 @@
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;
More information about the Python-checkins
mailing list