diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-11-16 14:27:41 +0000 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-11-16 14:27:41 +0000 |
commit | 3caf385850a96d7536f4b988e225d6fc600d6185 (patch) | |
tree | de04385bf6716d31dcd8660d1fc81d1e23538321 | |
parent | 5b8ca6cbb1fa5a53cdb64a40541d4858295e34e3 (diff) | |
download | glibc-3caf385850a96d7536f4b988e225d6fc600d6185.zip glibc-3caf385850a96d7536f4b988e225d6fc600d6185.tar.gz glibc-3caf385850a96d7536f4b988e225d6fc600d6185.tar.bz2 |
Revert "cheri: malloc: avoid switch over uintptr_t"
This reverts commit dc8f9560104f0803e53fa23bfd011aa9878d5a97.
-rw-r--r-- | malloc/mcheck-impl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/malloc/mcheck-impl.c b/malloc/mcheck-impl.c index e908bfd..00b7662 100644 --- a/malloc/mcheck-impl.c +++ b/malloc/mcheck-impl.c @@ -74,7 +74,7 @@ checkhdr (const struct hdr *hdr) an error and report it. */ return MCHECK_OK; - switch (hdr->magic ^ ((unsigned long) hdr->prev + (unsigned long) hdr->next)) + switch (hdr->magic ^ ((uintptr_t) hdr->prev + (uintptr_t) hdr->next)) { default: status = MCHECK_HEAD; |