diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-10-05 17:14:29 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-10-05 17:14:29 +0900 |
commit | cd182c5ee14c7a799a0ce422021d6ecb6a0b166e (patch) | |
tree | 73e8678b6b572428cf2833dbb83702a99d7b1389 /include/ruby | |
parent | a15996c752cccbdcad2065b9b0a22271c3bbbb99 (diff) |
Adjust types to rb_enc_left_char_head
I dislike unnatural casts.
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/internal/encoding/encoding.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/encoding/encoding.h b/include/ruby/internal/encoding/encoding.h index ae2e15773d..b4274b7f55 100644 --- a/include/ruby/internal/encoding/encoding.h +++ b/include/ruby/internal/encoding/encoding.h @@ -694,7 +694,7 @@ rb_enc_prev_char(const char *s, const char *p, const char *e, const rb_encoding * @return Pointer to the head of the character that contains `p`. */ static inline char * -rb_enc_left_char_head(const char *s, const void *p, const char *e, const rb_encoding *enc) +rb_enc_left_char_head(const char *s, const char *p, const char *e, const rb_encoding *enc) { const OnigUChar *us = RBIMPL_CAST((const OnigUChar *)s); const OnigUChar *up = RBIMPL_CAST((const OnigUChar *)p); |