avoid warnings when building on systems where sizeof(void *) > sizeof(int)
authorNils Larsch <nils@openssl.org>
Fri, 29 Apr 2005 14:26:59 +0000 (14:26 +0000)
committerNils Larsch <nils@openssl.org>
Fri, 29 Apr 2005 14:26:59 +0000 (14:26 +0000)
crypto/mem_clr.c

index e4b7f54..75cbfb3 100644 (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;