mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
a207d4e86a
This fixes compiler warnings emitted when you compare an le32 value with e.g. 'const_cpu_to_le32(-1)' on a little-endian system, because previously the expansion of the macro expression 'const_cpu_to_le32(-1)' would be '(-1)' on a little-endian system but '(u32)((((u32)(-1) & 0xff000000u) >> 24) | (((u32)(-1) & 0x00ff0000u) >> 8) | (((u32)(-1) & 0x0000ff00u) << 8) | (((u32)(-1) & 0x000000ffu) << 24))' on a big-endian system, i.e. the type of the expanded expression would be 'int' (signed) in the little-endian case but 'u32' (unsigned) in the big-endian case. With this commit the type of the expanded expression will be 'le32' in both the little-endian and the big-endian case. |
||
---|---|---|
.. | ||
fuse-lite | ||
ntfs-3g | ||
Makefile.am |