summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--string.c1
-rw-r--r--version.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/string.c b/string.c
index 6773ed2d86..95f023232a 100644
--- a/string.c
+++ b/string.c
@@ -2460,6 +2460,7 @@ rb_str_modify_expand(VALUE str, long expand)
else if (expand > 0) {
RESIZE_CAPA_TERM(str, len + expand, termlen);
}
+ ENC_CODERANGE_CLEAR(str);
}
/* As rb_str_modify(), but don't clear coderange */
diff --git a/version.h b/version.h
index 5eb9d00160..5dac221817 100644
--- a/version.h
+++ b/version.h
@@ -11,7 +11,7 @@
# define RUBY_VERSION_MINOR RUBY_API_VERSION_MINOR
#define RUBY_VERSION_TEENY 1
#define RUBY_RELEASE_DATE RUBY_RELEASE_YEAR_STR"-"RUBY_RELEASE_MONTH_STR"-"RUBY_RELEASE_DAY_STR
-#define RUBY_PATCHLEVEL 40
+#define RUBY_PATCHLEVEL 41
#include "ruby/version.h"
#include "ruby/internal/abi.h"