diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 06:18:25 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 06:18:25 +0000 |
commit | 1ee46d76c49c2ddb72f1bb0539decc165b48feb7 (patch) | |
tree | 82ee319f66c5fc428bb2aeb754dd4deb3fe98fa8 | |
parent | 0972cbc28422b89ad9eb5e051d88ba83e1fd3078 (diff) |
* enumerator.c (enumerator_init_copy): typo fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | enumerator.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -12,6 +12,8 @@ Fri Dec 21 14:58:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * enumerator.c (enumerator_init_copy): prohibit cloning of generators since Fibers cannot be copied. + * enumerator.c (enumerator_init_copy): typo fixed. + Fri Dec 21 14:46:07 2007 Tanaka Akira <akr@fsij.org> * io.c (Init_IO): define IO::BINARY even if O_BINARY is not exist. diff --git a/enumerator.c b/enumerator.c index 729d7c04ca..2217ed648e 100644 --- a/enumerator.c +++ b/enumerator.c @@ -288,7 +288,7 @@ enumerator_init_copy(VALUE obj, VALUE orig) struct enumerator *ptr0, *ptr1; ptr0 = enumerator_ptr(orig); - if (ptr1->fib) { + if (ptr0->fib) { /* Fibers cannot be copied */ rb_raise(rb_eTypeError, "can't copy execution context"); } |