aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--enc/unicode.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 101499ba29..f6f302c22b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jan 27 18:53:40 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/unicode.c: Fixed bit mask in macro OnigCodePointCount
+
Wed Jan 27 17:54:42 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
* enc/unicode.c: Protect code point count by macro, in order to
diff --git a/enc/unicode.c b/enc/unicode.c
index 4fb742a034..6866285d9f 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -72,7 +72,7 @@ static const unsigned short EncUNICODE_ISO_8859_1_CtypeTable[256] = {
};
/* use bottom bytes for actual code point count; 3 bits is more than enough */
-#define OnigCodePointCount(n) ((n)&0x111)
+#define OnigCodePointCount(n) ((n)&0x7)
typedef struct {
int n;