[fix] float comparison

This commit is contained in:
Al
2015-08-07 17:28:15 -04:00
parent f161f68d53
commit a197d04b1a

View File

@@ -64,7 +64,7 @@ bloom_filter_t *bloom_filter_new(uint64_t capacity, double error) {
bloom->ready = false;
if (capacity < 1 || error == 0.0) {
if (capacity < 1 || error < 0.0) {
goto exit_free_bloom;
}