summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:20:17 (GMT)
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-28 11:20:17 (GMT)
commitabfdaf20a6cada238c6bfd352c5375ed56b18bdc (patch)
treefa139cffe0954d669ccfca51ba67a8d101fba79d /error.c
parent4cd402ae1f5bf127ed16c7f5c84b5193e595cf35 (diff)
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 317d69c..176659b 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);
}