use mrb_str_new_lit instead of mrb_str_new for C string literals

This commit is contained in:
cubicdaiya
2014-02-26 02:23:50 +09:00
parent f3e9a066aa
commit 94c5a5ee73
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -2406,7 +2406,7 @@ mrb_str_inspect(mrb_state *mrb, mrb_value str)
{
const char *p, *pend;
char buf[CHAR_ESC_LEN + 1];
mrb_value result = mrb_str_new(mrb, "\"", 1);
mrb_value result = mrb_str_new_lit(mrb, "\"");
p = RSTRING_PTR(str); pend = RSTRING_END(str);
for (;p < pend; p++) {