From 1ee46d76c49c2ddb72f1bb0539decc165b48feb7 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 21 Dec 2007 06:18:25 +0000 Subject: * enumerator.c (enumerator_init_copy): typo fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enumerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'enumerator.c') 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"); } -- cgit v1.2.3