From 74c9bf6154abc53c275d0d4d3dde0deebb10bc20 Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Thu, 20 Nov 2014 22:41:40 +0100 Subject: [PATCH] Swap arguments. Fixes issue #31 --- src/hanoidb.hrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hanoidb.hrl b/src/hanoidb.hrl index 219051b..cfb0081 100644 --- a/src/hanoidb.hrl +++ b/src/hanoidb.hrl @@ -76,7 +76,7 @@ -define(BLOOM_TO_BIN(Bloom), hanoidb_bloom:encode(Bloom)). %% -> Binary -define(BIN_TO_BLOOM(Bin), {ok, hanoidb_bloom:decode(Bin)}). -define(BLOOM_INSERT(Bloom, Key), {ok, hanoidb_bloom:add(Key,Bloom)}). --define(BLOOM_CONTAINS(Bloom, Key), hanoidb_bloom:member(Bloom, Key)). %% -> 'true' | 'false' +-define(BLOOM_CONTAINS(Bloom, Key), hanoidb_bloom:member(Key, Bloom)). %% -> 'true' | 'false' -else.