- make it compile again.

This commit is contained in:
Christoph Oelckers 2019-10-14 22:42:29 +02:00
parent 17a4ddd51e
commit 9a4c07db27

View file

@ -514,21 +514,21 @@ inline int QRandom2(int a1)
template<class T> template<class T>
inline void SetBitString(T *pArray, int nIndex) inline void SetBitString(T *pArray, int nIndex)
{ {
static_assert(sizeof(T) == 1); static_assert(sizeof(T) == 1, "");
pArray[nIndex>>3] |= 1<<(nIndex&7); pArray[nIndex>>3] |= 1<<(nIndex&7);
} }
template<class T> template<class T>
inline void ClearBitString(T *pArray, int nIndex) inline void ClearBitString(T *pArray, int nIndex)
{ {
static_assert(sizeof(T) == 1); static_assert(sizeof(T) == 1, "");
pArray[nIndex >> 3] &= ~(1 << (nIndex & 7)); pArray[nIndex >> 3] &= ~(1 << (nIndex & 7));
} }
template<class T> template<class T>
inline char TestBitString(T *pArray, int nIndex) inline char TestBitString(T *pArray, int nIndex)
{ {
static_assert(sizeof(T) == 1); static_assert(sizeof(T) == 1, "");
return pArray[nIndex>>3] & (1<<(nIndex&7)); return pArray[nIndex>>3] & (1<<(nIndex&7));
} }