* vm.c (vm_jump_tag_but_local_jump): exc is not used if val is nil.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-09-26 18:15:54 +00:00
Родитель 34c7492e2c
Коммит 655685612e
2 изменённых файлов: 5 добавлений и 1 удалений

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

@ -1,3 +1,7 @@
Sat Sep 27 03:15:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (vm_jump_tag_but_local_jump): exc is not used if val is nil.
Sat Sep 27 03:12:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> Sat Sep 27 03:12:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/socket/socket.c (host_str): numeric address should be unsigned. * ext/socket/socket.c (host_str): numeric address should be unsigned.

2
vm.c
Просмотреть файл

@ -841,8 +841,8 @@ vm_make_jump_tag_but_local_jump(int state, VALUE val)
void void
vm_jump_tag_but_local_jump(int state, VALUE val) vm_jump_tag_but_local_jump(int state, VALUE val)
{ {
VALUE exc = vm_make_jump_tag_but_local_jump(state, val);
if (val != Qnil) { if (val != Qnil) {
VALUE exc = vm_make_jump_tag_but_local_jump(state, val);
rb_exc_raise(exc); rb_exc_raise(exc);
} }
JUMP_TAG(state); JUMP_TAG(state);