diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-07 13:42:38 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-11-07 13:42:38 (GMT) |
commit | fad85aadb0e168b7bde414694e448f34bb38c8ef (patch) | |
tree | f8fd61aa10789d9bda57c33d66ff4e60bd4d2794 /Python/random.c | |
parent | 41a87637c0406d73425f79ba11aa43dbae9cfe0f (diff) | |
download | cpython-fad85aadb0e168b7bde414694e448f34bb38c8ef.zip cpython-fad85aadb0e168b7bde414694e448f34bb38c8ef.tar.gz cpython-fad85aadb0e168b7bde414694e448f34bb38c8ef.tar.bz2 |
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 772bfef..9b42d54 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; |