From bd0244d067a9523c98a071c49214a03494c8b20b Mon Sep 17 00:00:00 2001 From: cubicdaiya Date: Thu, 27 Feb 2014 22:42:25 +0900 Subject: use mrb_str_cat_lit() intead of mrb_str_cat --- src/object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/object.c') diff --git a/src/object.c b/src/object.c index 172f2dbda..c6b72640f 100644 --- a/src/object.c +++ b/src/object.c @@ -444,7 +444,7 @@ mrb_any_to_s(mrb_state *mrb, mrb_value obj) mrb_str_buf_cat(mrb, str, "#<", 2); mrb_str_cat_cstr(mrb, str, cname); - mrb_str_cat(mrb, str, ":", 1); + mrb_str_cat_lit(mrb, str, ":"); mrb_str_concat(mrb, str, mrb_ptr_to_str(mrb, mrb_cptr(obj))); mrb_str_buf_cat(mrb, str, ">", 1); -- cgit v1.2.3