summaryrefslogtreecommitdiff
path: root/sprintf.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-30 04:44:39 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-30 04:44:39 (GMT)
commit51964bf995b7f3b0c1202646fc619b91e052f648 (patch)
tree9e921e2b346969ea7e66126e17f996e04fb1611a /sprintf.c
parent23ce0a421d51110ac20db998c2f411b9eb290b5b (diff)
symbol.c: rb_sym_intern
* symbol.c (rb_sym_intern): rename from rb_cstr_intern and add variants. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sprintf.c b/sprintf.c
index c2e5de5..99c97a0 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -611,9 +611,9 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
if (!NIL_P(sym)) nextvalue = rb_hash_lookup2(hash, sym, Qundef);
if (nextvalue == Qundef) {
if (NIL_P(sym)) {
- sym = rb_cstr_intern(start + 1,
- len - 2 /* without parenthesis */,
- enc);
+ sym = rb_sym_intern(start + 1,
+ len - 2 /* without parenthesis */,
+ enc);
}
nextvalue = rb_hash_default_value(hash, sym);
if (NIL_P(nextvalue)) {