mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
- make it compile again.
This commit is contained in:
parent
17a4ddd51e
commit
9a4c07db27
1 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue