mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-126433: Fix compiler warnings on 32-bit Windows (#126444)
This commit is contained in:
parent
bbfd9c92fa
commit
0b67ce930a
5 changed files with 12 additions and 10 deletions
|
@ -4923,7 +4923,9 @@ static unsigned int psk_client_callback(SSL *s,
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (identity_len_ + 1 > max_identity_len || psk_len_ > max_psk_len) {
|
||||
if ((size_t)identity_len_ + 1 > max_identity_len
|
||||
|| (size_t)psk_len_ > max_psk_len)
|
||||
{
|
||||
Py_DECREF(result);
|
||||
goto error;
|
||||
}
|
||||
|
@ -5036,7 +5038,7 @@ static unsigned int psk_server_callback(SSL *s,
|
|||
goto error;
|
||||
}
|
||||
|
||||
if (psk_len_ > max_psk_len) {
|
||||
if ((size_t)psk_len_ > max_psk_len) {
|
||||
Py_DECREF(result);
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue