summaryrefslogtreecommitdiff
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 3f588dfbb1..4cd5f5e677 100644
--- a/string.c
+++ b/string.c
@@ -6809,7 +6809,7 @@ rb_str_casemap(VALUE source, OnigCaseFoldType *flags, rb_encoding *enc)
current_buffer->next = NULL;
current_buffer->capa = capa;
buffer_length_or_invalid = enc->case_map(flags,
- (const OnigUChar**)&source_current, source_end,
+ &source_current, source_end,
current_buffer->space,
current_buffer->space+current_buffer->capa,
enc);