We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1fe89d4 commit 9d6b05cCopy full SHA for 9d6b05c
src/md5.cpp
@@ -144,7 +144,7 @@ void Md5::final(uint8_t* result) {
144
result[14] = static_cast<uint8_t>(d_ >> 16);
145
result[15] = static_cast<uint8_t>(d_ >> 24);
146
147
- memset(this, 0, sizeof(Md5));
+ memset(static_cast<void*>(this), 0, sizeof(Md5));
148
}
149
150
// This processes one or more 64-byte data blocks, but does NOT update
0 commit comments