diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-26 16:05:01 -0500 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2016-02-26 16:05:01 -0500 |
commit | eb26f0cded0028d8ee3bc45666c1225a08ff07e6 (patch) | |
tree | 7b42090382245fe3a4dabad4e6cd5fba4e2d22b1 | |
parent | c56148e7f901bbaf9d87eccc3c46fefae548bf9f (diff) | |
download | roux-eb26f0cded0028d8ee3bc45666c1225a08ff07e6.tar.gz |
use memset to zero a bitset
-rw-r--r-- | lisc/util.c | 2 |
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 |