diff options
author | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-27 09:54:38 +0000 |
---|---|---|
committer | duerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-27 09:54:38 +0000 |
commit | a7c987968de91bcc4cada65ce90b23c2f89957e3 (patch) | |
tree | caa53f6df327b9095ea26f84c2c8ecc43d2c7499 /enc | |
parent | 415949faba4dc741bd03e0ab34fdcfeb894b8b61 (diff) | |
download | ruby-a7c987968de91bcc4cada65ce90b23c2f89957e3.tar.gz |
* enc/unicode.c: Fixed bit mask in macro OnigCodePointCount
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc')
-rw-r--r-- | enc/unicode.c | 2 |
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; |