* ext/syck/rubyext.c (mktime_do): use ISDIGIT().
[ruby-core:43060] [Bug #6108] * ext/syck/token.c (sycklex_yaml_utf8): cast as unsigned char. [ruby-core:43060] [Bug #6108] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5c9d7c54ab
commit
b854733d51
@ -1,3 +1,11 @@
|
|||||||
|
Sat Mar 3 08:03:29 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/syck/rubyext.c (mktime_do): use ISDIGIT().
|
||||||
|
[ruby-core:43060] [Bug #6108]
|
||||||
|
|
||||||
|
* ext/syck/token.c (sycklex_yaml_utf8): cast as unsigned char.
|
||||||
|
[ruby-core:43060] [Bug #6108]
|
||||||
|
|
||||||
Sat Mar 3 06:57:14 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Mar 3 06:57:14 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* configure.in (ruby_pc): make configurable. [Bug #6051]
|
* configure.in (ruby_pc): make configurable. [Bug #6051]
|
||||||
|
@ -277,7 +277,7 @@ mktime_do(VALUE varg)
|
|||||||
const char *end = ptr + 1;
|
const char *end = ptr + 1;
|
||||||
const char *begin = end;
|
const char *begin = end;
|
||||||
ptrdiff_t length;
|
ptrdiff_t length;
|
||||||
while ( isdigit( *end ) ) end++;
|
while ( ISDIGIT( *end ) ) end++;
|
||||||
if ((length = (end - begin)) > padding) length = padding;
|
if ((length = (end - begin)) > padding) length = padding;
|
||||||
MEMCPY(padded, begin, char, length);
|
MEMCPY(padded, begin, char, length);
|
||||||
usec = strtol(padded, NULL, 10);
|
usec = strtol(padded, NULL, 10);
|
||||||
|
@ -2361,7 +2361,7 @@ ScalarBlock:
|
|||||||
{
|
{
|
||||||
nlDoWhat = NL_KEEP;
|
nlDoWhat = NL_KEEP;
|
||||||
}
|
}
|
||||||
else if ( isdigit( *yyt ) )
|
else if ( isdigit( (unsigned char)*yyt ) )
|
||||||
{
|
{
|
||||||
forceIndent = rb_long2int(strtol( yyt, NULL, 10 ));
|
forceIndent = rb_long2int(strtol( yyt, NULL, 10 ));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user