diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-05-28 01:07:08 +0000 |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-05-28 01:07:08 +0000 |
commit | 30a919d162fc7f5072de7fecde86da3d9b43d3e8 (patch) | |
tree | 32f34d92e32755208fab34fcc543a8996b0039d3 /Python/random.c | |
parent | f04b85e6c166e9f31aa167d63e92c49595c858d6 (diff) | |
parent | 1f1268c0bc93629b7abc16d8af9cf997c32a947b (diff) | |
download | cpython-30a919d162fc7f5072de7fecde86da3d9b43d3e8.tar.gz |
Issue #20699: Merge io bytes-like fixes from 3.5
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 79157b8b6f..839d7ad991 100644 --- a/Python/random.c +++ b/Python/random.c @@ -386,7 +386,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; |