diff options
author | Adrien Schildknecht <adriens@google.com> | 2016-08-10 17:07:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2016-08-10 17:07:00 -0400 |
commit | d4e5abfb1bb990a029005c1a801961fc1a0ba866 (patch) | |
tree | cedd7ea2316a2951d17c5cda5f3831b882c69c1d /lib/ext2fs/bitops.c | |
parent | 5cc6db0c829353eef4591ac10a9a06c504e65134 (diff) | |
download | e2fsprogs-d4e5abfb1bb990a029005c1a801961fc1a0ba866.tar.gz |
libext2fs: replace 'unsigned long' by 'uintptr_t'
This is needed for win64:
sizeof(unsigned long) != sizeof(void*)
Signed-off-by: Adrien Schildknecht <adriens@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib/ext2fs/bitops.c')
-rw-r--r-- | lib/ext2fs/bitops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ext2fs/bitops.c b/lib/ext2fs/bitops.c index 8e4c05c4..833d1e97 100644 --- a/lib/ext2fs/bitops.c +++ b/lib/ext2fs/bitops.c @@ -138,7 +138,7 @@ unsigned int ext2fs_bitcount(const void *addr, unsigned int nbytes) const __u32 *p; unsigned int res = 0; - while (((((unsigned long) cp) & 3) != 0) && (nbytes > 0)) { + while (((((uintptr_t) cp) & 3) != 0) && (nbytes > 0)) { res += popcount8(*cp++); nbytes--; } |