* 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
This commit is contained in:
parent
5b91aa9746
commit
a69021a699
@ -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>
|
Wed Sep 24 17:44:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* complex.c (Init_Complex), rational.c (Init_Rational): undefines
|
* complex.c (Init_Complex), rational.c (Init_Rational): undefines
|
||||||
|
2
string.c
2
string.c
@ -5862,7 +5862,7 @@ rb_str_rstrip_bang(VALUE str)
|
|||||||
|
|
||||||
if (single_byte_optimizable(str)) {
|
if (single_byte_optimizable(str)) {
|
||||||
/* remove trailing spaces or '\0's */
|
/* 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 {
|
else {
|
||||||
char *tp;
|
char *tp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user