summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortakano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-01 11:11:08 +0000
committertakano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-01 11:11:08 +0000
commitf14133782b12c3f3998261a736b143b07acd237d (patch)
tree395824d094ed3bfa82a4001e85434a1d7ac993db /ext
parentcf2c9d7d960f001b218fec0a7ec75e6813a658b8 (diff)
* ext/zlib/zlib.c (zstream_expand_buffer_into): remove compare different type values warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/zlib/zlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 3c50b99785..435a1a6a9f 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -59,7 +59,7 @@ struct zstream;
struct zstream_funcs;
static void zstream_init(struct zstream*, const struct zstream_funcs*);
static void zstream_expand_buffer(struct zstream*);
-static void zstream_expand_buffer_into(struct zstream*, int);
+static void zstream_expand_buffer_into(struct zstream*, unsigned int);
static void zstream_append_buffer(struct zstream*, const Bytef*, int);
static VALUE zstream_detach_buffer(struct zstream*);
static VALUE zstream_shift_buffer(struct zstream*, int);
@@ -518,7 +518,7 @@ zstream_expand_buffer(struct zstream *z)
}
static void
-zstream_expand_buffer_into(struct zstream *z, int size)
+zstream_expand_buffer_into(struct zstream *z, unsigned int size)
{
if (NIL_P(z->buf)) {
/* I uses rb_str_new here not rb_str_buf_new because
@@ -2591,7 +2591,7 @@ rb_gzfile_set_mtime(VALUE obj, VALUE mtime)
}
else {
val = rb_Integer(mtime);
- gz->mtime = FIXNUM_P(val) ? FIX2INT(val) : rb_big2ulong(val);
+ gz->mtime = FIXNUM_P(val) ? FIX2UINT(val) : rb_big2ulong(val);
}
return mtime;
}