OSDN Git Service

Fix cluster bitmap traversal on big endian machines.
authorrelan <relan@users.noreply.github.com>
Mon, 4 May 2020 12:11:22 +0000 (15:11 +0300)
committerrelan <relan@users.noreply.github.com>
Mon, 4 May 2020 15:53:09 +0000 (18:53 +0300)
commit4e6606bb5ffa39fbe72f0321ce7eb0ee27deb49f
tree088ee51bfed8bd2e8a7b38696f0343eef59b20fa
parent3fc0205178407b8f3a15e9e0214713ff6b32cc1b
Fix cluster bitmap traversal on big endian machines.

We define bitmap_t to unsigned char on big endian systems to avoid byte
order conversions. But bitwise complement causes integer promotion and
makes the condition always false. Truncate the result after complementing
zero.
libexfat/cluster.c