summaryrefslogtreecommitdiffstats
path: root/crypto/mem_clr.c
diff options
context:
space:
mode:
authorNils Larsch <nils@openssl.org>2005-04-29 16:26:59 +0200
committerNils Larsch <nils@openssl.org>2005-04-29 16:26:59 +0200
commit1897c893022c75b314187d7bee3aef7a9026493c (patch)
treebbb61107eb34d9a2fd1f7cd355e370ad65aef9b0 /crypto/mem_clr.c
parentPointer to BN_MONT_CTX could be used uninitialized. (diff)
downloadopenssl-1897c893022c75b314187d7bee3aef7a9026493c.tar.xz
openssl-1897c893022c75b314187d7bee3aef7a9026493c.zip
avoid warnings when building on systems where sizeof(void *) > sizeof(int)
Diffstat (limited to 'crypto/mem_clr.c')
-rw-r--r--crypto/mem_clr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/mem_clr.c b/crypto/mem_clr.c
index e4b7f540b0..75cbfb374e 100644
--- a/crypto/mem_clr.c
+++ b/crypto/mem_clr.c
@@ -68,7 +68,7 @@ void OPENSSL_cleanse(void *ptr, size_t len)
while(loop--)
{
*(p++) = cleanse_ctr;
- cleanse_ctr += (17 + (unsigned char)((int)p & 0xF));
+ cleanse_ctr += (17 + (unsigned char)((unsigned long)p & 0xF));
}
if(memchr(ptr, cleanse_ctr, len))
cleanse_ctr += 63;