diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 22:42:28 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-09-28 22:42:28 (GMT) |
commit | 639418812f11749f99d1160b26325bdfa3a26a6f (patch) | |
tree | eb438b6f5e06b7a5144567ff5c95c190bf850cc1 /Modules/faulthandler.c | |
parent | b9dcffb51e0075f70434febb6ea557cc4d22f5fd (diff) | |
download | cpython-639418812f11749f99d1160b26325bdfa3a26a6f.zip cpython-639418812f11749f99d1160b26325bdfa3a26a6f.tar.gz cpython-639418812f11749f99d1160b26325bdfa3a26a6f.tar.bz2 |
Use the new Py_ARRAY_LENGTH macro
Diffstat (limited to 'Modules/faulthandler.c')
-rw-r--r-- | Modules/faulthandler.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c index 15d6863..8ee0630 100644 --- a/Modules/faulthandler.c +++ b/Modules/faulthandler.c @@ -112,7 +112,7 @@ static fault_handler_t faulthandler_handlers[] = { {SIGSEGV, 0, "Segmentation fault", } }; static const unsigned char faulthandler_nsignals = \ - sizeof(faulthandler_handlers) / sizeof(faulthandler_handlers[0]); + Py_ARRAY_LENGTH(faulthandler_handlers); #ifdef HAVE_SIGALTSTACK static stack_t stack; |