[test] fix check error, cast non-trivial class pointer to void * (#4579)

This commit is contained in:
Li Cao
2020-02-20 09:38:43 -08:00
committed by GitHub
parent 5cddf90389
commit 8fcdcf6fd3
+1 -1
View File
@@ -60,7 +60,7 @@ public:
*/
TestIphcVector(const char *aTestName)
{
memset(this, 0, sizeof(*this));
memset(reinterpret_cast<void *>(this), 0, sizeof(TestIphcVector));
mTestName = aTestName;
mSrcContext.mContextId = kContextUnused;
mDstContext.mContextId = kContextUnused;