Merge pull request #3082

8b50209c fix for warning (Onur Altun)
This commit is contained in:
Riccardo Spagni 2018-01-25 16:49:20 -08:00
commit 0a94399a05
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -47,7 +47,7 @@ static void test(bool wipe)
if ((intptr_t)quux == foop)
{
MDEBUG(std::hex << std::setw(8) << std::setfill('0') << *(uint32_t*)quux);
if (wipe) ASSERT_TRUE(memcmp(quux, "bar", 3));
if (wipe) { ASSERT_TRUE(memcmp(quux, "bar", 3)); }
}
else MWARNING("We did not get the same location, cannot check");
free(quux);