]> granicus.if.org Git - python/commitdiff
Fix signed/unsigned mismatch.
authorRaymond Hettinger <python@rcn.com>
Mon, 26 Jan 2009 16:52:22 +0000 (16:52 +0000)
committerRaymond Hettinger <python@rcn.com>
Mon, 26 Jan 2009 16:52:22 +0000 (16:52 +0000)
Modules/_ssl.c

index 8fe72a5e4507eb3002d10dfadc0ed450ec8fdba5..4b0958a6bb9318dadadc43acd52faa122d288ea1 100644 (file)
@@ -1542,7 +1542,7 @@ static int _setup_ssl_threads(void) {
                for (i = 0;  i < _ssl_locks_count;  i++) {
                        _ssl_locks[i] = PyThread_allocate_lock();
                        if (_ssl_locks[i] == NULL) {
-                               int j;
+                               unsigned int j;
                                for (j = 0;  j < i;  j++) {
                                        PyThread_free_lock(_ssl_locks[j]);
                                }