mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
Issue #25558: Use compile-time asserts.
This commit is contained in:
parent
41a87637c0
commit
fad85aadb0
7 changed files with 24 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue