Skip to content

Commit

Permalink
* ext/dbm/dbm.c (fdbm_empty_p): fix wrong condtion introduced in r36438.
Browse files Browse the repository at this point in the history
* ext/sdbm/init.c (fsdbm_empty_p): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nurse committed Jul 18, 2012
1 parent 5b7b60b commit 7624e5d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
Wed Jul 18 23:04:18 2012 NARUSE, Yui <[email protected]>

* ext/dbm/dbm.c (fdbm_empty_p): fix wrong condtion introduced in r36438.

* ext/sdbm/init.c (fsdbm_empty_p): ditto.

Wed Jul 18 23:08:57 2012 Tanaka Akira <[email protected]>

* test/ruby/test_beginendblock.rb: remove temporally files early.
Expand Down
2 changes: 1 addition & 1 deletion ext/dbm/dbm.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ fdbm_empty_p(VALUE obj)
}
}
else {
if (!dbmp->di_size)
if (dbmp->di_size)
return Qfalse;
}
return Qtrue;
Expand Down
2 changes: 1 addition & 1 deletion ext/sdbm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ fsdbm_empty_p(VALUE obj)
}
}
else {
if (!dbmp->di_size)
if (dbmp->di_size)
return Qfalse;
}
return Qtrue;
Expand Down

0 comments on commit 7624e5d

Please sign in to comment.