diff options
Diffstat (limited to 'ext/gdbm/gdbm.c')
-rw-r--r-- | ext/gdbm/gdbm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c index 3c1ef88adf..044a9908b6 100644 --- a/ext/gdbm/gdbm.c +++ b/ext/gdbm/gdbm.c @@ -159,7 +159,7 @@ fgdbm_delete(obj, keystr) value = gdbm_fetch(dbm, key); if (value.dptr == 0) { - if (rb_iterator_p()) rb_yield(keystr); + if (rb_block_given_p()) rb_yield(keystr); return Qnil; } |