[Python-checkins] r73131 - in python/branches/py3k: Objects/frameobject.c

antoine.pitrou python-checkins at python.org
Tue Jun 2 01:29:07 CEST 2009


Author: antoine.pitrou
Date: Tue Jun  2 01:29:07 2009
New Revision: 73131

Log:
Merged revisions 73129 via svnmerge from 
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
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Objects/frameobject.c

Modified: python/branches/py3k/Objects/frameobject.c
==============================================================================
--- python/branches/py3k/Objects/frameobject.c	(original)
+++ python/branches/py3k/Objects/frameobject.c	Tue Jun  2 01:29:07 2009
@@ -130,8 +130,10 @@
 	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;


More information about the Python-checkins mailing list