diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-10 07:22:50 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-12-10 07:22:50 +0000 |
commit | 3529e14a4b24b76c3731742a4277805a0b23ce44 (patch) | |
tree | 25db5caea349ad1241aded6d0ba95178062c26cf /regex.c | |
parent | 9ea4d33c33bd41bd66e0816f53c06b0e2252ffc8 (diff) |
* parse.y (gettable): should freeze __LINE__ string.
* parse.y (str_extend): should not process immature #$x and
#@x interportation, e.g #@#@ etc.
* regex.c (WC2MBC1ST): should not pass through > 0x80 number in UTF-8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regex.c')
-rw-r--r-- | regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -477,7 +477,7 @@ re_set_syntax(syntax) } while(0) #define WC2MBC1ST(c) \ - ((c<0x100)?(c):((current_mbctype != MBCTYPE_UTF8)?(((c)>>8)&0xff):utf8_firstbyte(c))) + ((current_mbctype != MBCTYPE_UTF8) ? ((c<0x100) ? (c) : (((c)>>8)&0xff)) : utf8_firstbyte(c)) static unsigned int utf8_firstbyte(c) |