1
0
mirror of synced 2025-04-21 22:25:55 +03:00

Fixed warning

This commit is contained in:
yhirose 2020-04-19 22:04:29 -04:00
parent d1037ee9fd
commit 38a6b3e69f

View File

@ -4551,11 +4551,11 @@ public:
private: private:
static void locking_callback(int mode, int type, const char * /*file*/, static void locking_callback(int mode, int type, const char * /*file*/,
int /*line*/) { int /*line*/) {
auto &locks = *openSSL_locks_; auto &lk = (*openSSL_locks_)[static_cast<size_t>(type)];
if (mode & CRYPTO_LOCK) { if (mode & CRYPTO_LOCK) {
locks[type].lock(); lk.lock();
} else { } else {
locks[type].unlock(); lk.unlock();
} }
} }
}; };