From 3f2ab509f7addf63100366a09e2c1b2525831f04 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 27 Oct 2005 08:18:38 +0000 Subject: * string.c (scan_once): wrong condition to use mbclen2(). [ruby-dev:27535] * time.c (time_sunday): added predicate methods for the days of the week. [ruby-list:41340] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index bce4ea78c..61baa930c 100644 --- a/string.c +++ b/string.c @@ -3993,7 +3993,7 @@ scan_once(VALUE str, VALUE pat, long *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; -- cgit