fixed MOO_SMOOI_TO_OOP to pacify clang about the warning 'warning: shifting a negative signed value is undefined'

This commit is contained in:
2018-05-28 09:49:32 +00:00
parent af709feb96
commit 1d6951f22d
2 changed files with 8 additions and 4 deletions

View File

@ -311,9 +311,13 @@ int hcl_ucwidth (hcl_uch_t uc)
(uc >= 0xfe10 && uc <= 0xfe19) || /* Vertical forms */
(uc >= 0xfe30 && uc <= 0xfe6f) || /* CJK Compatibility Forms */
(uc >= 0xff00 && uc <= 0xff60) || /* Fullwidth Forms */
(uc >= 0xffe0 && uc <= 0xffe6) ||
(uc >= 0xffe0 && uc <= 0xffe6)
#if (HCL_SIZEOF_UCH_T > 2)
||
(uc >= 0x20000 && uc <= 0x2fffd) ||
(uc >= 0x30000 && uc <= 0x3fffd))
(uc >= 0x30000 && uc <= 0x3fffd)
#endif
)
{
return 2;
}