diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-18 04:46:04 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-18 04:46:04 +0000 |
commit | 8c36fc30c24bd34d2686e68fc6e1a5d6584bd248 (patch) | |
tree | cf7d4c0ffbc09525c9a33cb7c04fb28e6e6a574a /encoding.c | |
parent | 39b33658e3764ee621a9c2c9cc003e21da4e327e (diff) | |
download | ruby-8c36fc30c24bd34d2686e68fc6e1a5d6584bd248.tar.gz |
add casts
* encoding.c (load_encoding): explicit cast to suppress warning.
Though the cast truncates some bits, from heuristic analysis I
believe it is OK to do so here.
* bignum.c (rb_cstr_to_inum): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c index 38e28c837d..ae62d67486 100644 --- a/encoding.c +++ b/encoding.c @@ -582,7 +582,7 @@ load_encoding(const char *name) while (s < e) { if (!ISALNUM(*s)) *s = '_'; - else if (ISUPPER(*s)) *s = TOLOWER(*s); + else if (ISUPPER(*s)) *s = (char)TOLOWER(*s); ++s; } FL_UNSET(enclib, FL_TAINT|FL_UNTRUSTED); |