summaryrefslogtreecommitdiffstats
path: root/string.c
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
commit686823b721f13a610e933acb3a8c7acf9b0e8292 (patch)
tree5b618d469e521f1a0d0fb54af2c5dce2b59a0818 /string.c
parent75d17648a8c0f3f0d4c4019ec13425968edd780c (diff)
downloadruby-686823b721f13a610e933acb3a8c7acf9b0e8292.tar.gz
ruby-686823b721f13a610e933acb3a8c7acf9b0e8292.tar.xz
ruby-686823b721f13a610e933acb3a8c7acf9b0e8292.zip
* string.c (rb_str_strip_bang): workaround for VC++8 x64.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 33d03e13c..a47485680 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;