Skip to content

Commit d6f5234

Browse files
authored
deps: fix sign-compare warning in ncrypto
PR-URL: #54624 Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
1 parent 0b120af commit d6f5234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/ncrypto/ncrypto.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ DataPointer DHPointer::computeSecret(const BignumPointer& peer) const {
11941194

11951195
// The size of the computed key can be smaller than the size of the DH key.
11961196
// We want to make sure that the key is correctly padded.
1197-
if (size < dp.size()) {
1197+
if (static_cast<size_t>(size) < dp.size()) {
11981198
const size_t padding = dp.size() - size;
11991199
uint8_t* data = static_cast<uint8_t*>(dp.get());
12001200
memmove(data + padding, data, size);

0 commit comments

Comments
 (0)