shithub: mc

Download patch

ref: c6b35c0012479ebe927bf479519678a863d0d328
parent: 16461118be707834c1b2b43774a350fe6f6cc45c
author: Ori Bernstein <ori@eigenstate.org>
date: Wed Feb 24 09:09:52 EST 2016

Use eltshift.

--- a/util/util.h
+++ b/util/util.h
@@ -92,7 +92,7 @@
 		return 0;
 	eltidx = elt / (8 * sizeof(size_t));
 	eltshift = elt % (8 * sizeof(size_t));
-	return (bs->chunks[eltidx] & (1ULL << (elt % (8 * sizeof(size_t))))) != 0;
+	return (bs->chunks[eltidx] & (1ULL << eltshift)) != 0;
 }