diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-07 15:42:38 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-07 15:42:38 +0200 |
commit | ab9342460bf6d26c19d73c506195737a35529433 (patch) | |
tree | af76187cbdfcd103a000439f679145b600378fe2 /Python/random.c | |
parent | e15d5aa1b47ee525101c79609b5c881a7b9eae88 (diff) | |
download | cpython-ab9342460bf6d26c19d73c506195737a35529433.tar.gz |
Issue #25558: Use compile-time asserts.
Diffstat (limited to 'Python/random.c')
-rw-r--r-- | Python/random.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/random.c b/Python/random.c index 772bfef0e8..9b42d5498c 100644 --- a/Python/random.c +++ b/Python/random.c @@ -379,7 +379,7 @@ _PyRandom_Init(void) char *env; unsigned char *secret = (unsigned char *)&_Py_HashSecret.uc; Py_ssize_t secret_size = sizeof(_Py_HashSecret_t); - assert(secret_size == sizeof(_Py_HashSecret.uc)); + Py_BUILD_ASSERT(sizeof(_Py_HashSecret_t) == sizeof(_Py_HashSecret.uc)); if (_Py_HashSecret_Initialized) return; |