[Python-checkins] r55841 - python/trunk/Python/peephole.c

neal.norwitz python-checkins at python.org
Sat Jun 9 06:48:27 CEST 2007


Author: neal.norwitz
Date: Sat Jun  9 06:48:22 2007
New Revision: 55841

Modified:
   python/trunk/Python/peephole.c
Log:
Use macro version of GET_SIZE to avoid Coverity warning (#150) about a possible error.

Modified: python/trunk/Python/peephole.c
==============================================================================
--- python/trunk/Python/peephole.c	(original)
+++ python/trunk/Python/peephole.c	Sat Jun  9 06:48:22 2007
@@ -308,7 +308,7 @@
 
 	/* Avoid situations where jump retargeting could overflow */
 	assert(PyString_Check(code));
-	codelen = PyString_Size(code);
+	codelen = PyString_GET_SIZE(code);
 	if (codelen > 32700)
 		goto exitUnchanged;
 


More information about the Python-checkins mailing list