ruby-changes:55646
From: git <ko1@a...>
Date: Thu, 2 May 2019 22:44:59 +0900 (JST)
Subject: [ruby-changes:55646] git:5c87bb3b90 (trunk): * expand tabs.
https://git.ruby-lang.org/ruby.git/commit/?id=5c87bb3b90 From 5c87bb3b90a6d77089314ed0e62e31654621efa9 Mon Sep 17 00:00:00 2001 From: git <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Thu, 2 May 2019 22:44:43 +0900 Subject: * expand tabs. diff --git a/string.c b/string.c index 8e7b1e2..b8ff2dd 100644 --- a/string.c +++ b/string.c @@ -6518,7 +6518,7 @@ rb_str_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc) https://github.com/ruby/ruby/blob/trunk/string.c#L6518 if (buffer_length_or_invalid < 0) { current_buffer = DATA_PTR(buffer_anchor); DATA_PTR(buffer_anchor) = 0; - mapping_buffer_free(current_buffer); + mapping_buffer_free(current_buffer); rb_raise(rb_eArgError, "input string invalid"); } target_length += current_buffer->used = buffer_length_or_invalid; @@ -6535,7 +6535,7 @@ rb_str_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc) https://github.com/ruby/ruby/blob/trunk/string.c#L6535 target = rb_str_new_with_class(source, 0, target_length); target_current = RSTRING_PTR(target); - current_buffer = DATA_PTR(buffer_anchor); + current_buffer = DATA_PTR(buffer_anchor); while (current_buffer) { memcpy(target_current, current_buffer->space, current_buffer->used); target_current += current_buffer->used; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/