projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87facba
)
mem_dbg.c: avoid compiler warnings.
author
Andy Polyakov
<appro@openssl.org>
Thu, 17 Jul 2008 13:58:21 +0000
(13:58 +0000)
committer
Andy Polyakov
<appro@openssl.org>
Thu, 17 Jul 2008 13:58:21 +0000
(13:58 +0000)
PR: 1693
Submitted by: Stefan Neis
crypto/mem_dbg.c
patch
|
blob
|
history
diff --git
a/crypto/mem_dbg.c
b/crypto/mem_dbg.c
index d7b1021b8c52b81366f09e502f680d4a3275dfff..ad5209b8175fe8cb0a3cdb9cc7788c210398546d 100644
(file)
--- a/
crypto/mem_dbg.c
+++ b/
crypto/mem_dbg.c
@@
-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 *a
p
=(const char *)a->addr,
+ *b
p
=(const char *)b->addr;
+ if (a
p==bp)
return 0;
+ else if (a
p>bp)
return 1;
else return -1;
#else
return (const char *)a->addr - (const char *)b->addr;