diff --git a/deps/ncrypto/ncrypto.cc b/deps/ncrypto/ncrypto.cc index 2a02ae79e4e30c..bf989369442084 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);