aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:20:17 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:20:17 +0000
commit3d9758e562cf85dcddf058f63285001424b39890 (patch)
treefa139cffe0954d669ccfca51ba67a8d101fba79d /error.c
parentbdb3e042671b5f683242bf2913796f24d04cfbb3 (diff)
downloadruby-3d9758e562cf85dcddf058f63285001424b39890.tar.gz
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
Diffstat (limited to 'error.c')
-rw-r--r--error.c4
1 files changed, 2 insertions, 2 deletions
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);
}