summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-28 00:51:54 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-28 00:51:54 +0900
commit9a9548eb0e493d1480caa7d1176ebf0e0b8e8e30 (patch)
tree88b808872b0a64d59d1f12f1744c57951527fb83
parent30ac4e55969889b7fab3acfdfe50de0822b18d9b (diff)
parenta238c9c1c3d6b5b2cb3fcea455fda985bf7f4429 (diff)
downloadmruby-9a9548eb0e493d1480caa7d1176ebf0e0b8e8e30.tar.gz
mruby-9a9548eb0e493d1480caa7d1176ebf0e0b8e8e30.zip
Merge pull request #1760 from cubicdaiya/issues/make_mrb_str_dump_a_bit_faster
make mrb_str_dump a bit faster
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 6424626d2..719be3ff5 100644
--- a/src/string.c
+++ b/src/string.c
@@ -2361,7 +2361,7 @@ mrb_str_dump(mrb_state *mrb, mrb_value str)
}
}
}
- *q++ = '"';
+ *q = '"';
return mrb_obj_value(result);
}