ruby-changes:48677
From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 14:56:25 +0900 (JST)
Subject: [ruby-changes:48677] ko1:r60793 (trunk): fix r60792.
ko1 2017-11-16 14:56:21 +0900 (Thu, 16 Nov 2017) New Revision: 60793 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60793 Log: fix r60792. * error.c (warning_string): `file` is already cstr. Modified files: trunk/error.c Index: error.c =================================================================== --- error.c (revision 60792) +++ error.c (revision 60793) @@ -230,8 +230,7 @@ warning_string(rb_encoding *enc, const c https://github.com/ruby/ruby/blob/trunk/error.c#L230 { int line; const char *file = rb_source_location_cstr(&line); - return warn_vsprintf(enc, - RSTRING_PTR(file), line, fmt, args); + return warn_vsprintf(enc, file, line, fmt, args); } #define with_warning_string(mesg, enc, fmt) \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/