From 4d82ba512c793c2c11a54a1bb1f5ead41e2f8d92 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 18 Apr 2010 03:28:12 +0000 Subject: [PATCH] * transcode.c (transcode_loop): suppressed a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- transcode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transcode.c b/transcode.c index 7683d4c9be..6490f5b3bc 100644 --- a/transcode.c +++ b/transcode.c @@ -2280,7 +2280,7 @@ transcode_loop(const unsigned char **in_pos, unsigned char **out_pos, StringValue(rep); ret = rb_econv_insert_output(ec, (const unsigned char *)RSTRING_PTR(rep), RSTRING_LEN(rep), rb_enc_name(rb_enc_get(rep))); - if (ret == -1) { + if ((int)ret == -1) { rb_raise(rb_eArgError, "too big fallback string"); } goto resume;