]> granicus.if.org Git - python/commitdiff
Fix compiler warnings
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 27 Mar 2008 05:03:11 +0000 (05:03 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 27 Mar 2008 05:03:11 +0000 (05:03 +0000)
Modules/_ssl.c

index 48681042e0063caa02ab3ff119e3ebe6951a8857..3f167b32caf7fc32c247d8bf1648be8060489f59 100644 (file)
@@ -1431,7 +1431,7 @@ static void _ssl_thread_locking_function (int mode, int n, const char *file, int
        */
 
        if ((_ssl_locks == NULL) ||
-           (n < 0) || (n >= _ssl_locks_count))
+           (n < 0) || ((unsigned)n >= _ssl_locks_count))
                return;
 
        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) {
 
-       int i;
+       unsigned int i;
 
        if (_ssl_locks == NULL) {
                _ssl_locks_count = CRYPTO_num_locks();