aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 10:04:20 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-24 10:04:20 +0000
commita69021a69961425a00a7275b1af2abec05a3bde5 (patch)
tree5b618d469e521f1a0d0fb54af2c5dce2b59a0818
parent5b91aa974658423d2b765d3b1145e452c0d1fff3 (diff)
downloadruby-a69021a69961425a00a7275b1af2abec05a3bde5.tar.gz
* string.c (rb_str_strip_bang): workaround for VC++8 x64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19526 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 f3d5e49d66..e6ff9bc07a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Sep 24 19:01:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_strip_bang): workaround for VC++8 x64.
+
Wed Sep 24 17:44:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* complex.c (Init_Complex), rational.c (Init_Rational): undefines
diff --git a/string.c b/string.c
index 33d03e13c6..a474856808 100644
--- a/string.c
+++ b/string.c
@@ -5862,7 +5862,7 @@ rb_str_rstrip_bang(VALUE str)
if (single_byte_optimizable(str)) {
/* remove trailing spaces or '\0's */
- while (s < t && (t[-1] == '\0' || rb_enc_isspace(*(t-1), enc))) t--;
+ while (s < t && (*(t-1) == '\0' || rb_enc_isspace(*(t-1), enc))) t--;
}
else {
char *tp;