mirror of
https://github.com/python/cpython.git
synced 2025-12-07 09:47:28 +00:00
Fix compiler warnings
This commit is contained in:
parent
311d071541
commit
5802bb2319
1 changed files with 2 additions and 2 deletions
|
|
@ -1431,7 +1431,7 @@ static void _ssl_thread_locking_function (int mode, int n, const char *file, int
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ((_ssl_locks == NULL) ||
|
if ((_ssl_locks == NULL) ||
|
||||||
(n < 0) || (n >= _ssl_locks_count))
|
(n < 0) || ((unsigned)n >= _ssl_locks_count))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (mode & CRYPTO_LOCK) {
|
if (mode & CRYPTO_LOCK) {
|
||||||
|
|
@ -1443,7 +1443,7 @@ static void _ssl_thread_locking_function (int mode, int n, const char *file, int
|
||||||
|
|
||||||
static int _setup_ssl_threads(void) {
|
static int _setup_ssl_threads(void) {
|
||||||
|
|
||||||
int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (_ssl_locks == NULL) {
|
if (_ssl_locks == NULL) {
|
||||||
_ssl_locks_count = CRYPTO_num_locks();
|
_ssl_locks_count = CRYPTO_num_locks();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue