diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-14 12:29:56 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-14 12:29:56 +0000 |
commit | cb006c18501d8f5e5fa07198b1b309a782bd96d3 (patch) | |
tree | d44c9e4c8646268781d1b246c70de90a180065ee /string.c | |
parent | 1f0dec2a1be842d5d7772fbb647c0633c771b351 (diff) | |
download | ruby-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |