aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index f9730012c5..3166f595e7 100644
--- a/string.c
+++ b/string.c
@@ -5658,7 +5658,7 @@ rb_str_each_line(int argc, VALUE *argv, VALUE str)
rb_encoding *enc;
VALUE rs;
unsigned int newline;
- char *p, *pend, *s, *ptr;
+ const char *p, *pend, *s, *ptr;
long len, rslen;
VALUE line;
int n;