From d6f523480b1ce7e4440be04018b731a8232434a4 Mon Sep 17 00:00:00 2001 From: Cheng Date: Sat, 31 Aug 2024 11:10:36 +0900 Subject: [PATCH] deps: fix sign-compare warning in ncrypto PR-URL: https://github.com/nodejs/node/pull/54624 Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell Reviewed-By: Chemi Atlow --- deps/ncrypto/ncrypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/ncrypto/ncrypto.cc b/deps/ncrypto/ncrypto.cc index 2a02ae79e4e..bf989369442 100644 --- a/deps/ncrypto/ncrypto.cc +++ b/deps/ncrypto/ncrypto.cc @@ -1194,7 +1194,7 @@ DataPointer DHPointer::computeSecret(const BignumPointer& peer) const { // The size of the computed key can be smaller than the size of the DH key. // We want to make sure that the key is correctly padded. - if (size < dp.size()) { + if (static_cast(size) < dp.size()) { const size_t padding = dp.size() - size; uint8_t* data = static_cast(dp.get()); memmove(data + padding, data, size);