зеркало из https://github.com/github/ruby.git
* 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:
Родитель
3b5eac1a08
Коммит
6aacb0ede4
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче