fix copy/paste error

develop
Ben Lubar 2020-02-22 14:10:26 -06:00
parent 0711b2569a
commit 37a8bf679e
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 1 additions and 1 deletions

@ -584,7 +584,7 @@ void Checker::check_dispatch(const ToCheck & item)
uint32_t tag = *reinterpret_cast<uint32_t *>(PTR_ADD(item.ptr, -8)); uint32_t tag = *reinterpret_cast<uint32_t *>(PTR_ADD(item.ptr, -8));
if (tag == 0xdfdf4ac8) if (tag == 0xdfdf4ac8)
{ {
size_t allocated_size = *reinterpret_cast<size_t *>(PTR_ADD(item.ptr - 1, -16)); size_t allocated_size = *reinterpret_cast<size_t *>(PTR_ADD(item.ptr, -16));
FAIL("pointer to a block of " << allocated_size << " bytes of allocated memory"); FAIL("pointer to a block of " << allocated_size << " bytes of allocated memory");
} }