[Python-checkins] python/dist/src/Python codecs.c,2.18,2.19
loewis@users.sourceforge.net
loewis@users.sourceforge.net
Thu, 21 Nov 2002 15:53:27 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv15764/Python
Modified Files:
codecs.c
Log Message:
Properly compute array size even for --disable-unicode.
Index: codecs.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/codecs.c,v
retrieving revision 2.18
retrieving revision 2.19
diff -C2 -d -r2.18 -r2.19
*** codecs.c 21 Nov 2002 20:08:32 -0000 2.18
--- codecs.c 21 Nov 2002 23:53:25 -0000 2.19
***************
*** 823,827 ****
if (_PyCodec_ErrorRegistry) {
! for (i = 0; i < 5; ++i) {
PyObject *func = PyCFunction_New(&methods[i].def, NULL);
int res;
--- 823,827 ----
if (_PyCodec_ErrorRegistry) {
! for (i = 0; i < sizeof(methods)/sizeof(methods[0]); ++i) {
PyObject *func = PyCFunction_New(&methods[i].def, NULL);
int res;