summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-24 10:30:09 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-24 10:30:09 +0000
commit74f8f1c9901fb92c975d0371c252a673ff2be7ce (patch)
tree7cac0ff0f2ed4a945dbfd040de0caba2c29d6f74
parentb1daf0d4e311fa91444a776440f6c240e06d9b09 (diff)
downloadruby-74f8f1c9901fb92c975d0371c252a673ff2be7ce.tar.gz
ruby-74f8f1c9901fb92c975d0371c252a673ff2be7ce.tar.xz
ruby-74f8f1c9901fb92c975d0371c252a673ff2be7ce.zip
* string.c (rb_str_dump): do not use C++ comment.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--string.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 0c6b57f9f..06c0e089c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Oct 24 19:29:22 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * string.c (rb_str_dump): do not use C++ comment.
+
Fri Oct 24 19:16:36 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
* id.h (enum ruby_method_ids): ISO C forbids comma at end of
diff --git a/string.c b/string.c
index a960970a0..fa2781939 100644
--- a/string.c
+++ b/string.c
@@ -4212,7 +4212,7 @@ rb_str_dump(VALUE str)
sprintf(q, ".force_encoding(\"%s\")", enc->name);
enc = rb_ascii8bit_encoding();
}
-// STR_SET_LEN(result, strlen(RSTRING_PTR(result)));
+ /* STR_SET_LEN(result, strlen(RSTRING_PTR(result))); */
OBJ_INFECT(result, str);
/* result from dump is ASCII */
rb_enc_associate(result, enc);