aboutsummaryrefslogtreecommitdiffstats
path: root/enc
diff options
context:
space:
mode:
Diffstat (limited to 'enc')
-rw-r--r--enc/unicode.c2
1 files changed, 1 insertions, 1 deletions
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;