Skip to content

Commit 9d6b05c

Browse files
benine203roydahan
authored andcommitted
silence compiler Werror about nontrivial pointer operand to memset
1 parent 1fe89d4 commit 9d6b05c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/md5.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ void Md5::final(uint8_t* result) {
144144
result[14] = static_cast<uint8_t>(d_ >> 16);
145145
result[15] = static_cast<uint8_t>(d_ >> 24);
146146

147-
memset(this, 0, sizeof(Md5));
147+
memset(static_cast<void*>(this), 0, sizeof(Md5));
148148
}
149149

150150
// This processes one or more 64-byte data blocks, but does NOT update

0 commit comments

Comments
 (0)