From 68e111176ffb1d3f88e5605a5e3eeb8c200cce13 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 25 Jan 2010 02:50:05 +0000 Subject: * string.c (rb_str_inspect): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index f04802f3f7..109edd36ba 100644 --- a/string.c +++ b/string.c @@ -4101,7 +4101,7 @@ rb_str_inspect(VALUE str) if (p > prev) str_buf_cat(result, prev, p - prev); n = rb_enc_mbminlen(enc); if (pend < p + n) - n = pend - p; + n = (int)(pend - p); while (n--) { snprintf(buf, CHAR_ESC_LEN, "\\x%02X", *p & 0377); str_buf_cat(result, buf, strlen(buf)); -- cgit v1.2.3