diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-24 22:50:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-24 22:50:11 +0000 |
commit | ec879e5197c691d31d5383f47e310cbafd765abf (patch) | |
tree | 0a864c7e3f5c3c4d6e603b6e11afd25b288d4839 /string.c | |
parent | de9d2aae39623ef6e81222fff33062bc624c6e87 (diff) | |
download | ruby-ec879e5197c691d31d5383f47e310cbafd765abf.tar.gz ruby-ec879e5197c691d31d5383f47e310cbafd765abf.tar.xz ruby-ec879e5197c691d31d5383f47e310cbafd765abf.zip |
* string.c (rb_str_partition): should use the converted result. a
patch from Marc-Andre Lafortune at [ruby-core:23540].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6876,6 +6876,7 @@ rb_str_partition(VALUE str, VALUE sep) rb_raise(rb_eTypeError, "type mismatch: %s given", rb_obj_classname(sep)); } + sep = tmp; pos = rb_str_index(str, sep, 0); } if (pos < 0) { |