bug fixes
[satune.git] / src / Encoders / elementencoding.cc
index 19439dc426e88933e13a4561d878398316611cc8..cc9688964a39a2e14c05a81224c9bd1e5c3b0ee6 100644 (file)
@@ -32,7 +32,7 @@ void ElementEncoding::allocEncodingArrayElement(uint size) {
 }
 
 void ElementEncoding::allocInUseArrayElement(uint size) {
-       uint bytes = ((size + ((1 << 9) - 1)) >> 6) & ~7;//Depends on size of inUseArray
+       uint bytes = ((size + 63) >> 3) & ~7;   //Depends on size of inUseArray
        inUseArray = (uint64_t *) ourcalloc(1, bytes);
 }