1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove a redundant cast between the exact same types

This commit is contained in:
Nobuyoshi Nakada 2021-10-05 15:56:34 +09:00
parent 126122bb6c
commit 5a961c3768
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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);