mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
415949faba
commit
a7c987968d
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue