summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
Diffstat (limited to 're.c')
-rw-r--r--re.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/re.c b/re.c
index 8730723b91..6cc41f4bba 100644
--- a/re.c
+++ b/re.c
@@ -660,7 +660,7 @@ rb_reg_options_m(VALUE re)
static VALUE
rb_reg_kcode_m(VALUE re)
{
- char *kcode;
+ const char *kcode;
if (FL_TEST(re, KCODE_FIXED)) {
switch (RBASIC(re)->flags & KCODE_MASK) {