ruby-changes:65820
From: Nobuyoshi <ko1@a...>
Date: Thu, 8 Apr 2021 21:42:21 +0900 (JST)
Subject: [ruby-changes:65820] 0395aa6bbb (master): Make the return type of rb_char_next the same as CharNext
https://git.ruby-lang.org/ruby.git/commit/?id=0395aa6bbb From 0395aa6bbb23c2a4c92fbbec87803a9670174d2c Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 8 Apr 2021 21:26:10 +0900 Subject: Make the return type of rb_char_next the same as CharNext --- eval_intern.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eval_intern.h b/eval_intern.h index 9fa9031..3238df1 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -303,14 +303,14 @@ VALUE rb_ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, l https://github.com/ruby/ruby/blob/trunk/eval_intern.h#L303 #ifndef CharNext /* defined as CharNext[AW] on Windows. */ # ifdef HAVE_MBLEN # define CharNext(p) rb_char_next(p) -static inline const char * +static inline char * rb_char_next(const char *p) { if (p) { int len = mblen(p, RUBY_MBCHAR_MAXSIZE); p += len > 0 ? len : 1; } - return p; + return (char *)p; } # else # define CharNext(p) ((p) + 1) -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/