Commit ba2cf078 authored by Martin v. Löwis's avatar Martin v. Löwis

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

parent 0073f2e4
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment