summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 04:05:25 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-13 04:05:25 +0000
commitac6e87fc598355130a00a90d2e94343fca558f82 (patch)
tree868f7e4eb59997c1acf0f260d95ab9785fc6d21a /rational.c
parentdd2a86cf115d7e23673c75ba9f28f2699a1443f1 (diff)
* complex.c: use rb_usascii_str_new2 instead of rb_str_new2.
* rational.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rational.c b/rational.c
index 019104839c..0dc445dfba 100644
--- a/rational.c
+++ b/rational.c
@@ -1134,7 +1134,7 @@ nurat_inspect(VALUE self)
{
VALUE s;
- s = rb_str_new2("(");
+ s = rb_usascii_str_new2("(");
rb_str_concat(s, nurat_format(self, f_inspect));
rb_str_cat2(s, ")");
@@ -1288,7 +1288,7 @@ make_patterns(void)
sizeof underscores_pat_source - 1, 0);
rb_gc_register_mark_object(underscores_pat);
- an_underscore = rb_str_new2("_");
+ an_underscore = rb_usascii_str_new2("_");
rb_gc_register_mark_object(an_underscore);
}
@@ -1367,7 +1367,7 @@ string_to_r_internal(VALUE self)
v = f_mul(v, f_expt(INT2FIX(10), f_to_i(exp)));
#if 0
if (!NIL_P(de) && (!NIL_P(fp) || !NIL_P(exp)))
- return rb_assoc_new(v, rb_str_new2("dummy"));
+ return rb_assoc_new(v, rb_usascii_str_new2("dummy"));
#endif
if (!NIL_P(de))
v = f_div(v, f_to_i(de));