summaryrefslogtreecommitdiff
path: root/Objects/longobject.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
commit639418812f11749f99d1160b26325bdfa3a26a6f (patch)
treeeb438b6f5e06b7a5144567ff5c95c190bf850cc1 /Objects/longobject.c
parentb9dcffb51e0075f70434febb6ea557cc4d22f5fd (diff)
downloadcpython-git-639418812f11749f99d1160b26325bdfa3a26a6f.tar.gz
Use the new Py_ARRAY_LENGTH macro
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r--Objects/longobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 85b33530a7..43e5f0191c 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2444,8 +2444,7 @@ _PyLong_Frexp(PyLongObject *a, Py_ssize_t *e)
break;
}
}
- assert(1 <= x_size &&
- x_size <= (Py_ssize_t)(sizeof(x_digits)/sizeof(digit)));
+ assert(1 <= x_size && x_size <= (Py_ssize_t)Py_ARRAY_LENGTH(x_digits));
/* Round, and convert to double. */
x_digits[0] += half_even_correction[x_digits[0] & 7];