summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zlib/zlib.c')
-rw-r--r--ext/zlib/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index c54e83eac0..68d947d052 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -2983,7 +2983,7 @@ gzreader_skip_linebreaks(struct gzfile *gz)
}
static void
-rscheck(char *rsptr, long rslen, VALUE rs)
+rscheck(const char *rsptr, long rslen, VALUE rs)
{
if (RSTRING(rs)->ptr != rsptr && RSTRING(rs)->len != rslen)
rb_raise(rb_eRuntimeError, "rs modified");