mirror of
https://github.com/openssl/openssl.git
synced 2025-01-23 10:24:10 +08:00
mem_dbg.c: avoid compiler warnings.
PR: 1693 Submitted by: Stefan Neis
This commit is contained in:
parent
87facba376
commit
dd6f479ea8
@ -319,10 +319,10 @@ long CRYPTO_dbg_get_options(void)
|
||||
static int mem_cmp(const MEM *a, const MEM *b)
|
||||
{
|
||||
#ifdef _WIN64
|
||||
const char *a=(const char *)a->addr,
|
||||
*b=(const char *)b->addr;
|
||||
if (a==b) return 0;
|
||||
else if (a>b) return 1;
|
||||
const char *ap=(const char *)a->addr,
|
||||
*bp=(const char *)b->addr;
|
||||
if (ap==bp) return 0;
|
||||
else if (ap>bp) return 1;
|
||||
else return -1;
|
||||
#else
|
||||
return (const char *)a->addr - (const char *)b->addr;
|
||||
|
Loading…
Reference in New Issue
Block a user