[Python-checkins] python/dist/src/Python newcompile.c, 1.1.2.56,
1.1.2.57
jhylton at users.sourceforge.net
jhylton at users.sourceforge.net
Tue Dec 2 02:01:24 EST 2003
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv32465
Modified Files:
Tag: ast-branch
newcompile.c
Log Message:
Off-by-one in assertion. Thread CO_ flags through from symbol table.
Index: newcompile.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/Attic/newcompile.c,v
retrieving revision 1.1.2.56
retrieving revision 1.1.2.57
diff -C2 -d -r1.1.2.56 -r1.1.2.57
*** newcompile.c 2 Dec 2003 05:53:43 -0000 1.1.2.56
--- newcompile.c 2 Dec 2003 07:01:20 -0000 1.1.2.57
***************
*** 2207,2211 ****
a->a_lnotab_off += ncodes * 2;
}
! assert(d_bytecode < 255);
if (d_lineno > 255) {
int i, nbytes, ncodes = d_lineno / 255;
--- 2207,2211 ----
a->a_lnotab_off += ncodes * 2;
}
! assert(d_bytecode <= 255);
if (d_lineno > 255) {
int i, nbytes, ncodes = d_lineno / 255;
***************
*** 2368,2371 ****
--- 2368,2375 ----
flags |= CO_GENERATOR;
}
+ if (ste->ste_varargs)
+ flags |= CO_VARARGS;
+ if (ste->ste_varkeywords)
+ flags |= CO_VARKEYWORDS;
return flags;
}
More information about the Python-checkins
mailing list