summaryrefslogtreecommitdiffstats
path: root/Modules/unicodedata.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-09-28 22:42:28 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-09-28 22:42:28 (GMT)
commit639418812f11749f99d1160b26325bdfa3a26a6f (patch)
treeeb438b6f5e06b7a5144567ff5c95c190bf850cc1 /Modules/unicodedata.c
parentb9dcffb51e0075f70434febb6ea557cc4d22f5fd (diff)
downloadcpython-639418812f11749f99d1160b26325bdfa3a26a6f.zip
cpython-639418812f11749f99d1160b26325bdfa3a26a6f.tar.gz
cpython-639418812f11749f99d1160b26325bdfa3a26a6f.tar.bz2
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 d917f91..f636590 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]);