We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b120af commit d6f5234Copy full SHA for d6f5234
deps/ncrypto/ncrypto.cc
@@ -1194,7 +1194,7 @@ DataPointer DHPointer::computeSecret(const BignumPointer& peer) const {
1194
1195
// The size of the computed key can be smaller than the size of the DH key.
1196
// We want to make sure that the key is correctly padded.
1197
- if (size < dp.size()) {
+ if (static_cast<size_t>(size) < dp.size()) {
1198
const size_t padding = dp.size() - size;
1199
uint8_t* data = static_cast<uint8_t*>(dp.get());
1200
memmove(data + padding, data, size);
0 commit comments