diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-03-13 07:18:45 +0000 |
commit | 31c55301e4c3c84803186d28d2764363b457532f (patch) | |
tree | 5f3558168cba03413c22fb5a9b3a7d64e0519df2 /signal.c | |
parent | 976692f8ae8377af944f09177c8e79cb94809fe9 (diff) |
2000-03-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -202,13 +202,13 @@ rb_f_kill(argc, argv) switch (TYPE(argv[0])) { case T_FIXNUM: sig = FIX2UINT(argv[0]); - if (sig >= NSIG) { - s = rb_id2name(sig); - if (!s) rb_raise(rb_eArgError, "bad signal"); - goto str_signal; - } break; + case T_SYMBOL: + s = rb_id2name(SYM2ID(argv[0])); + if (!s) rb_raise(rb_eArgError, "bad signal"); + goto str_signal; + case T_STRING: { s = RSTRING(argv[0])->ptr; |