From 8c36fc30c24bd34d2686e68fc6e1a5d6584bd248 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 18 Jul 2012 04:46:04 +0000 Subject: 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 --- encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'encoding.c') 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); -- cgit v1.2.3