summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-18 03:28:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-18 03:28:12 +0000
commit4d82ba512c793c2c11a54a1bb1f5ead41e2f8d92 (patch)
treecd6aeabb6efc8d280ca5707b061be3a32e277169
parent54985ad7ddbb3e7aaa7fd35686e97d3be64aa23f (diff)
* transcode.c (transcode_loop): suppressed a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--transcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c
index 7683d4c9be9..6490f5b3bcc 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;