fix signed integer being compared to an unsigned integer

develop
Ben Lubar 2020-02-10 11:57:27 -06:00
parent be6f9a2531
commit 8122b95144
No known key found for this signature in database
GPG Key ID: 92939677AB59EDA4
1 changed files with 1 additions and 1 deletions

@ -116,7 +116,7 @@ void Deinit()
size_t detect_size(void *addr) { size_t detect_size(void *addr) {
size_t *size = (size_t*)((char*)addr - 16); size_t *size = (size_t*)((char*)addr - 16);
int32_t *tag = (int32_t*)((char*)addr - 8); uint32_t *tag = (uint32_t*)((char*)addr - 8);
if (isAddr(size, memdata.ranges) && (*tag == 0x11223344 || *tag == 0xdfdf4ac8)) { if (isAddr(size, memdata.ranges) && (*tag == 0x11223344 || *tag == 0xdfdf4ac8)) {
return *size; return *size;
} }