avoid warnings when building on systems where sizeof(void *) > sizeof(int)

This commit is contained in:
Nils Larsch 2005-04-29 14:26:59 +00:00
parent 3cc54008eb
commit 1897c89302

View File

@ -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;