Squash warning

svn path=/trunk/netsurf/; revision=6904
This commit is contained in:
John Mark Bell 2009-03-27 00:48:22 +00:00
parent 4a8b0ca787
commit 5823b09a1c
1 changed files with 2 additions and 2 deletions

View File

@ -131,8 +131,8 @@ struct talloc_chunk {
/* panic if we get a bad magic value */
static inline struct talloc_chunk *talloc_chunk_from_ptr(const void *ptr)
{
const char *pp = (const char *)ptr;
struct talloc_chunk *tc = discard_const_p(struct talloc_chunk, pp - TC_HDR_SIZE);
const void *pp = ((const char *)ptr) - TC_HDR_SIZE;
struct talloc_chunk *tc = discard_const_p(struct talloc_chunk, pp);
if (unlikely((tc->flags & (TALLOC_FLAG_FREE | ~0xF)) != TALLOC_MAGIC)) {
if (tc->flags & TALLOC_FLAG_FREE) {
TALLOC_ABORT("Bad talloc magic value - double free");