Properly compute array size even for --disable-unicode.

This commit is contained in:
Martin v. Löwis 2002-11-21 23:53:25 +00:00
parent 0073f2e428
commit ba2cf078d2
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ void _PyCodecRegistry_Init(void)
_PyCodec_ErrorRegistry = PyDict_New();
if (_PyCodec_ErrorRegistry) {
for (i = 0; i < 5; ++i) {
for (i = 0; i < sizeof(methods)/sizeof(methods[0]); ++i) {
PyObject *func = PyCFunction_New(&methods[i].def, NULL);
int res;
if (!func)