python/dist/src/Python compile.c,2.327,2.328
Update of /cvsroot/python/python/dist/src/Python In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27403 Modified Files: compile.c Log Message: Replaced a test with an assertion. (Suggested by Michael Hudson.) Index: compile.c =================================================================== RCS file: /cvsroot/python/python/dist/src/Python/compile.c,v retrieving revision 2.327 retrieving revision 2.328 diff -u -d -r2.327 -r2.328 --- compile.c 22 Sep 2004 18:44:20 -0000 2.327 +++ compile.c 28 Sep 2004 17:22:12 -0000 2.328 @@ -509,10 +509,8 @@ if (memchr(lineno, 255, tabsiz) != NULL) goto exitUnchanged; - if (!PyString_Check(code)) - goto exitUnchanged; - /* Avoid situations where jump retargeting could overflow */ + assert(PyString_Check(code)); codelen = PyString_Size(code); if (codelen > 32700) goto exitUnchanged;
participants (1)
-
rhettingerīŧ users.sourceforge.net