From abfdaf20a6cada238c6bfd352c5375ed56b18bdc Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 28 Oct 2017 11:20:17 +0000 Subject: check `ec` instead of `th`. * error.c (rb_bug): check `ec` instead of `th`. * error.c (rb_bug_context): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index 317d69c214..176659b8ee 100644 --- a/error.c +++ b/error.c @@ -532,7 +532,7 @@ rb_bug(const char *fmt, ...) const char *file = NULL; int line = 0; - if (GET_THREAD()) { + if (GET_EC()) { file = rb_source_loc(&line); } @@ -547,7 +547,7 @@ rb_bug_context(const void *ctx, const char *fmt, ...) const char *file = NULL; int line = 0; - if (GET_THREAD()) { + if (GET_EC()) { file = rb_source_loc(&line); } -- cgit v1.2.3