* 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
This commit is contained in:
ko1 2017-10-28 11:20:17 +00:00
Родитель 4cd402ae1f
Коммит abfdaf20a6
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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);
}