diff options
Diffstat (limited to 'enumerator.c')
-rw-r--r-- | enumerator.c | 2 |
1 files changed, 1 insertions, 1 deletions
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"); } |