* include/thai/thctype.h (_th_bitmsk):
- Use unsigned int instead of unsigned short for bitmask base,
as GCC 6 takes ~0 as -1 for unsigned short,
and causes compilation error for scim-thai.
Thanks Martin Michlmayr for the report via Debian #811690
http://bugs.debian.org/811690
Change-Id: Id1ad10ac1c73423c6e839f141dab4822248223cd
+2016-01-20 Theppitak Karoonboonyanan <theppitak@gmail.com>
+
+ Fix compilation error with GCC 6
+
+ * include/thai/thctype.h (_th_bitmsk):
+ - Use unsigned int instead of unsigned short for bitmask base,
+ as GCC 6 takes ~0 as -1 for unsigned short,
+ and causes compilation error for scim-thai.
+
+ Thanks Martin Michlmayr for the report via Debian #811690
+ http://bugs.debian.org/811690
+
2012-06-12 Theppitak Karoonboonyanan <thep@linux.thai.net>
* configure.in, NEWS:
#include <ctype.h>
#define _th_ISbit(bit) (1 << (bit))
#define _th_bitfld(base, val) ((val) << (base))
-#define _th_bitmsk(base, bits) (~((~(unsigned short)0) << (bits)) << (base))
+#define _th_bitmsk(base, bits) (~((~(unsigned)0) << (bits)) << (base))
enum {
_th_IStis = _th_ISbit(0), /* TIS-620 char */