diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-27 00:48:22 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2009-03-27 00:48:22 +0000 |
commit | 5823b09a1cea71b3809f530c26b3f2b57b71c1ed (patch) | |
tree | f7c3b2d51c686a8cdfa9875be63fe84344b31b0c | |
parent | 4a8b0ca787d7299369377f6459cc03fa4eec5964 (diff) | |
download | netsurf-5823b09a1cea71b3809f530c26b3f2b57b71c1ed.tar.gz netsurf-5823b09a1cea71b3809f530c26b3f2b57b71c1ed.tar.bz2 |
Squash warning
svn path=/trunk/netsurf/; revision=6904
-rw-r--r-- | utils/talloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/talloc.c b/utils/talloc.c index c60c6a58f..985bba93b 100644 --- a/utils/talloc.c +++ b/utils/talloc.c @@ -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"); |