mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* proc.c (proc_new): fix to return a proc object
which block is contained. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3b5eac1a08
commit
6aacb0ede4
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Jun 29 16:39:06 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* proc.c (proc_new): fix to return a proc object
|
||||
which block is contained.
|
||||
|
||||
Fri Jun 29 15:43:59 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (fix_pow): get rid of division by zero. reported by
|
||||
|
|
4
proc.c
4
proc.c
|
@ -277,6 +277,10 @@ proc_new(VALUE klass, int is_lambda)
|
|||
}
|
||||
}
|
||||
|
||||
if (block->proc) {
|
||||
return block->proc;
|
||||
}
|
||||
|
||||
procval = vm_make_proc(th, cfp, block);
|
||||
|
||||
if (is_lambda) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue