ruby-changes:45864
From: naruse <ko1@a...>
Date: Mon, 13 Mar 2017 02:26:05 +0900 (JST)
Subject: [ruby-changes:45864] naruse:r57937 (ruby_2_4): merge revision(s) 57809: [Backport #13291]
naruse 2017-03-13 02:26:03 +0900 (Mon, 13 Mar 2017) New Revision: 57937 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57937 Log: merge revision(s) 57809: [Backport #13291] fix paren * string.c (str_byte_substr): fix misplaced parenthesis at r56155. Modified directories: branches/ruby_2_4/ Modified files: branches/ruby_2_4/string.c branches/ruby_2_4/version.h Index: ruby_2_4/version.h =================================================================== --- ruby_2_4/version.h (revision 57936) +++ ruby_2_4/version.h (revision 57937) @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_4/version.h#L1 #define RUBY_VERSION "2.4.0" #define RUBY_RELEASE_DATE "2017-03-13" -#define RUBY_PATCHLEVEL 91 +#define RUBY_PATCHLEVEL 92 #define RUBY_RELEASE_YEAR 2017 #define RUBY_RELEASE_MONTH 3 Index: ruby_2_4/string.c =================================================================== --- ruby_2_4/string.c (revision 57936) +++ ruby_2_4/string.c (revision 57937) @@ -5196,7 +5196,7 @@ str_byte_substr(VALUE str, long beg, lon https://github.com/ruby/ruby/blob/trunk/ruby_2_4/string.c#L5196 else p = s + beg; - if (!STR_EMBEDDABLE_P(len, TERM_LEN(str) && SHARABLE_SUBSTRING_P(beg, len, n))) { + if (!STR_EMBEDDABLE_P(len, TERM_LEN(str)) && SHARABLE_SUBSTRING_P(beg, len, n)) { str2 = rb_str_new_frozen(str); str2 = str_new_shared(rb_obj_class(str2), str2); RSTRING(str2)->as.heap.ptr += beg; Property changes on: ruby_2_4 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r57809 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/