summaryrefslogtreecommitdiff
path: root/Modules/unicodedata.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-29 00:42:28 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-29 00:42:28 +0200
commit687c3b16f72a6b2b64971c1c27e33e27f001ede8 (patch)
tree9d9c6bedbf5f51f26a5f03a522eedddb852a3679 /Modules/unicodedata.c
parentea8093a66d771ae68b016c578c7b44be51c819b1 (diff)
downloadcpython-687c3b16f72a6b2b64971c1c27e33e27f001ede8.tar.gz
Use the new Py_ARRAY_LENGTH macro
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r--Modules/unicodedata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index d917f91e6f..f636590f0b 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -439,7 +439,7 @@ unicodedata_decomposition(PyObject *self, PyObject *args)
from Tools/unicode/makeunicodedata.py, it should not be possible
to overflow decomp_prefix. */
prefix_index = decomp_data[index] & 255;
- assert(prefix_index < (sizeof(decomp_prefix)/sizeof(*decomp_prefix)));
+ assert(prefix_index < Py_ARRAY_LENGTH(decomp_prefix));
/* copy prefix */
i = strlen(decomp_prefix[prefix_index]);