Fix signed/unsigned mismatch.
This commit is contained in:
parent
c2bd968a69
commit
26dd760636
|
@ -1592,7 +1592,7 @@ static int _setup_ssl_threads(void) {
|
||||||
for (i = 0; i < _ssl_locks_count; i++) {
|
for (i = 0; i < _ssl_locks_count; i++) {
|
||||||
_ssl_locks[i] = PyThread_allocate_lock();
|
_ssl_locks[i] = PyThread_allocate_lock();
|
||||||
if (_ssl_locks[i] == NULL) {
|
if (_ssl_locks[i] == NULL) {
|
||||||
int j;
|
unsigned int j;
|
||||||
for (j = 0; j < i; j++) {
|
for (j = 0; j < i; j++) {
|
||||||
PyThread_free_lock(_ssl_locks[j]);
|
PyThread_free_lock(_ssl_locks[j]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue