summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--transcode.c2
1 files changed, 1 insertions, 1 deletions
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;