commit | 639418812f11749f99d1160b26325bdfa3a26a6f | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Sep 29 00:42:28 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Sep 29 00:42:28 2011 +0200 |
tree | eb438b6f5e06b7a5144567ff5c95c190bf850cc1 | |
parent | b9dcffb51e0075f70434febb6ea557cc4d22f5fd [diff] [blame] |
Use the new Py_ARRAY_LENGTH macro
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index bff74d9..387974d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -12552,7 +12552,7 @@ /* initialize the linebreak bloom filter */ bloom_linebreak = make_bloom_mask( PyUnicode_2BYTE_KIND, linebreak, - sizeof(linebreak) / sizeof(linebreak[0])); + Py_ARRAY_LENGTH(linebreak)); PyType_Ready(&EncodingMapType); }