Skip to content

Commit 0395aa6

Browse files
committed
Make the return type of rb_char_next the same as CharNext
1 parent b0b3022 commit 0395aa6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eval_intern.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,14 @@ VALUE rb_ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, l
303303
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
304304
# ifdef HAVE_MBLEN
305305
# define CharNext(p) rb_char_next(p)
306-
static inline const char *
306+
static inline char *
307307
rb_char_next(const char *p)
308308
{
309309
if (p) {
310310
int len = mblen(p, RUBY_MBCHAR_MAXSIZE);
311311
p += len > 0 ? len : 1;
312312
}
313-
return p;
313+
return (char *)p;
314314
}
315315
# else
316316
# define CharNext(p) ((p) + 1)

0 commit comments

Comments
 (0)