From 360b78e4dccf19971d7dc46a31fc55a2759e8762 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 16 Nov 2017 05:52:19 +0000 Subject: `rb_source_loc` -> `rb_source_location_cstr` * vm.c (rb_source_loc): rename to rb_source_location_cstr() to make behavior clear compare with rb_source_location(). * error.c (warning_string): use rb_source_location_cstr() directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 582a605f9b..5b578ed28b 100644 --- a/eval.c +++ b/eval.c @@ -504,7 +504,7 @@ setup_exception(rb_execution_context_t *ec, int tag, volatile VALUE mesg, VALUE const char *file = 0; int line; - file = rb_source_loc(&line); + file = rb_source_location_cstr(&line); if ((file && !NIL_P(mesg)) || (cause != Qundef)) { volatile int state = 0; -- cgit v1.2.3