mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
Silenced a truncation warning in upper case table
The upper case value for 0x1d79 is 0xa77d, so the difference is 0x8a04, which overflows in the table which defines the computation of upper case values. Rewriting this difference as -0x75fc leads to the same result in an upper case table truncated to two bytes, and this avoid the compiler warning.
This commit is contained in:
parent
08d3bcb2bf
commit
e7c5950117
@ -1291,7 +1291,8 @@ void ntfs_upcase_table_build(ntfschar *uc, u32 uc_len)
|
||||
{ 0x3c2, 0x3c2, 0x0, 2, 6, 1 },
|
||||
{ 0x3d7, 0x3d7, -0x8, 2, 6, 1 },
|
||||
{ 0x515, 0x523, -0x1, 2, 6, 1 },
|
||||
{ 0x1d79, 0x1d79, 0x8a04, 2, 6, 1 },
|
||||
/* below, -0x75fc stands for 0x8a04 and truncation */
|
||||
{ 0x1d79, 0x1d79, -0x75fc, 2, 6, 1 },
|
||||
{ 0x1efb, 0x1eff, -0x1, 2, 6, 1 },
|
||||
{ 0x1fc3, 0x1ff3, 0x9, 48, 6, 1 },
|
||||
{ 0x1fcc, 0x1ffc, 0x0, 48, 6, 1 },
|
||||
|
Loading…
Reference in New Issue
Block a user