aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-14 12:29:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-14 12:29:56 +0000
commitcb006c18501d8f5e5fa07198b1b309a782bd96d3 (patch)
treed44c9e4c8646268781d1b246c70de90a180065ee /string.c
parent1f0dec2a1be842d5d7772fbb647c0633c771b351 (diff)
downloadruby-cb006c18501d8f5e5fa07198b1b309a782bd96d3.tar.gz
string.c: assertion
* string.c (str_shared_replace): use RUBY_ASSERT for pre-condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 7045d16f4f..5e1769a792 100644
--- a/string.c
+++ b/string.c
@@ -1323,7 +1323,7 @@ str_shared_replace(VALUE str, VALUE str2)
int cr;
int termlen;
- ASSUME(str2 != str);
+ RUBY_ASSERT(str2 != str);
enc = STR_ENC_GET(str2);
cr = ENC_CODERANGE(str2);
str_discard(str);