diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-04-29 18:18:07 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2015-05-01 19:13:09 +0300 |
commit | 9cf224322007d90193d4910f0da6e0e29ce01d70 (patch) | |
tree | 36785ad2f9a25dc40bf88fcbaacc927ac1005db7 /cipher/cipher.c | |
parent | d5a7e00b6b222566a5650639ef29684b047c1909 (diff) | |
download | libgcrypt-9cf224322007d90193d4910f0da6e0e29ce01d70.tar.gz |
Cast pointers to integers using uintptr_t instead of long
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r-- | cipher/cipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c index d1550c07..7a29824c 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -481,11 +481,11 @@ _gcry_cipher_open_internal (gcry_cipher_hd_t *handle, size_t off = 0; #ifdef NEED_16BYTE_ALIGNED_CONTEXT - if ( ((unsigned long)h & 0x0f) ) + if ( ((uintptr_t)h & 0x0f) ) { /* The malloced block is not aligned on a 16 byte boundary. Correct for this. */ - off = 16 - ((unsigned long)h & 0x0f); + off = 16 - ((uintptr_t)h & 0x0f); h = (void*)((char*)h + off); } #endif /*NEED_16BYTE_ALIGNED_CONTEXT*/ |