diff options
author | Andy Polyakov <appro@openssl.org> | 2015-09-30 11:36:21 +0300 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2015-10-05 10:26:19 +0300 |
commit | 5f0580ccf126a4834a406423e15da5b8a8bdf993 (patch) | |
tree | 7dbae4497530eaea157567d2642f30b26b850006 /crypto/mem_dbg.c | |
parent | 21ff9ac815f363a4fc9c8dc80ca09f0a5b2f02ef (diff) |
Harmonize pointer printing and size_t-fy casts.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/mem_dbg.c')
-rw-r--r-- | crypto/mem_dbg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/mem_dbg.c b/crypto/mem_dbg.c index 10cc8931e7..2cd1169918 100644 --- a/crypto/mem_dbg.c +++ b/crypto/mem_dbg.c @@ -321,9 +321,9 @@ static IMPLEMENT_LHASH_COMP_FN(mem, MEM) static unsigned long mem_hash(const MEM *a) { - unsigned long ret; + size_t ret; - ret = (unsigned long)a->addr; + ret = (size_t)a->addr; ret = ret * 17851 + (ret >> 14) * 7 + (ret >> 4) * 251; return (ret); @@ -661,8 +661,8 @@ static void print_leak_doall_arg(const MEM *m, MEM_LEAK *l) bufp += strlen(bufp); } - BIO_snprintf(bufp, BUF_REMAIN, "number=%d, address=%08lX\n", - m->num, (unsigned long)m->addr); + BIO_snprintf(bufp, BUF_REMAIN, "number=%d, address=%p\n", + m->num, m->addr); bufp += strlen(bufp); BIO_puts(l->bio, buf); |