diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-09 23:23:14 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2016-09-11 02:09:23 +0900 |
commit | 274113311883bf395d4970da97bd6b597eae705e (patch) | |
tree | abaa6250bfad7a041ac329e75c1160259a037dc9 /test/mkmf/test_framework.rb | |
parent | 3bb183188d5ee8adee9ac36f7983853dc2f1a836 (diff) | |
download | ruby-topic/fix-throw-false.tar.gz |
eval_intern.h: make TH_PUSH_TAG() initialize rb_vm_tag::tag with Qundeftopic/fix-throw-false
* eval_intern.h (TH_PUSH_TAG): initialize rb_vm_tag::tag with Qundef
rather than 0 which is equal to Qfalse. Since Kernel#throw(obj)
searches a tag with rb_vm_tag::tag == obj, throw(false) can find
an unrelated tag which is not created by Kernel#catch.
Diffstat (limited to 'test/mkmf/test_framework.rb')
0 files changed, 0 insertions, 0 deletions