From f547c1150cf0cb9fe2477e6aeb4ff7b724fc44c7 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 25 Jan 2002 08:22:11 +0000 Subject: * class.c (rb_include_module): detect cyclic module inclusion. * eval.c (rb_thread_cleanup): need not to free thread stacks at process termination. * array.c (rb_ary_fetch): use the block to get the default value if the block is given. * eval.c (rb_thread_schedule): should check time only if BOTH WAIT_SELECT and WAIT_TIME. * eval.c (umethod_bind): should update rklass field. * hash.c (rb_hash_update): if a block is given, yields [key, value1, value2] to the block to resolve conflict. * string.c (rb_str_split_m): no need to consider KANJI characters, if the length of separator is 1 (byte). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'string.c') diff --git a/string.c b/string.c index 39c0415750..b36314c915 100644 --- a/string.c +++ b/string.c @@ -1634,7 +1634,7 @@ uscore_get() line = rb_lastline_get(); if (TYPE(line) != T_STRING) { rb_raise(rb_eTypeError, "$_ value need to be String (%s given)", - NIL_P(line)?"nil":rb_class2name(CLASS_OF(line))); + NIL_P(line) ? "nil" : rb_class2name(CLASS_OF(line))); } return line; } @@ -2509,7 +2509,6 @@ rb_str_split_m(argc, argv, str) if (!NIL_P(limit) && lim <= ++i) break; } end++; - if (ismbchar(*ptr)) {ptr++; end++;} } } } -- cgit v1.2.3