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 | 7de42daa21a47335a485265f74322533a2da4f1a (patch) | |
tree | d44c9e4c8646268781d1b246c70de90a180065ee /string.c | |
parent | 6c0d7c98b6624ce260491aeee5dfd62ccb7c5d9f (diff) | |
download | ruby-7de42daa21a47335a485265f74322533a2da4f1a.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); |