From dbe203a37b8956f4d194798859d41a421d02542e Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 19 Oct 2019 19:50:21 -0400 Subject: Test against libressl 3.0 (#5031) * Test against libressl 3.0 * Correctly type these ints --- src/_cffi_src/openssl/callbacks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/_cffi_src/openssl/callbacks.py b/src/_cffi_src/openssl/callbacks.py index 75c62016..8ee01e0e 100644 --- a/src/_cffi_src/openssl/callbacks.py +++ b/src/_cffi_src/openssl/callbacks.py @@ -81,7 +81,7 @@ static inline void cryptography_mutex_unlock(Cryptography_mutex *mutex) { #endif -static unsigned int _ssl_locks_count = 0; +static int _ssl_locks_count = 0; static Cryptography_mutex *_ssl_locks = NULL; static void _ssl_thread_locking_function(int mode, int n, const char *file, @@ -101,7 +101,7 @@ static void _ssl_thread_locking_function(int mode, int n, const char *file, */ if ((_ssl_locks == NULL) || - (n < 0) || ((unsigned)n >= _ssl_locks_count)) { + (n < 0) || (n >= _ssl_locks_count)) { return; } -- cgit v1.2.3