summary refs log tree commit diff
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-26 16:05:01 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-26 16:05:01 -0500
commiteb26f0cded0028d8ee3bc45666c1225a08ff07e6 (patch)
tree7b42090382245fe3a4dabad4e6cd5fba4e2d22b1
parentc56148e7f901bbaf9d87eccc3c46fefae548bf9f (diff)
downloadroux-eb26f0cded0028d8ee3bc45666c1225a08ff07e6.tar.gz
use memset to zero a bitset
-rw-r--r--lisc/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisc/util.c b/lisc/util.c
index 07b1c20..58c9b7d 100644
--- a/lisc/util.c
+++ b/lisc/util.c
@@ -297,7 +297,7 @@ bsequal(BSet *a, BSet *b)
 void
 bszero(BSet *bs)
 {
-	bsdiff(bs, bs);
+	memset(bs->t, 0, bs->nt * sizeof bs->t[0]);
 }
 
 /* iterates on a bitset, use as follows