diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-27 08:19:20 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-27 08:19:20 +0000 |
commit | e6db0123e26543149f429c63ff7e91f2d9d8bbd3 (patch) | |
tree | e70ae21cb0c5abd9f23776100cae005279e65dc7 /string.c | |
parent | 2186aeaa5cfd364a7212c0679144b3c071246332 (diff) | |
download | ruby-e6db0123e26543149f429c63ff7e91f2d9d8bbd3.tar.gz ruby-e6db0123e26543149f429c63ff7e91f2d9d8bbd3.tar.xz ruby-e6db0123e26543149f429c63ff7e91f2d9d8bbd3.zip |
* string.c (scan_once): wrong condition to use mbclen2().
[ruby-dev:27535]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4189,7 +4189,7 @@ scan_once(str, pat, start) /* * Always consume at least one character of the input string */ - if (RSTRING(str)->len < END(0)) + if (RSTRING(str)->len > END(0)) *start = END(0)+mbclen2(RSTRING(str)->ptr[END(0)],pat); else *start = END(0)+1; |