summaryrefslogtreecommitdiff
path: root/ext/syck/token.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-02 23:03:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-03-02 23:03:32 +0000
commitb854733d518fcd72b14cea5d7fed6512550a3572 (patch)
tree4ad31316cedfadecdb93d45ec3343f298cec3285 /ext/syck/token.c
parent5c9d7c54ab3ca9933be70781777022d55e654309 (diff)
* 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
Diffstat (limited to 'ext/syck/token.c')
-rw-r--r--ext/syck/token.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/token.c b/ext/syck/token.c
index 0d0d4846ba..3d05527e65 100644
--- a/ext/syck/token.c
+++ b/ext/syck/token.c
@@ -2361,7 +2361,7 @@ ScalarBlock:
{
nlDoWhat = NL_KEEP;
}
- else if ( isdigit( *yyt ) )
+ else if ( isdigit( (unsigned char)*yyt ) )
{
forceIndent = rb_long2int(strtol( yyt, NULL, 10 ));
}