Fix client masks (C4334)

Bug discovered by compiler warning C4334 which says:

>'<<': result of 32-bit shift implicitly converted to 64 bits (was
>64-bit shift intended?)
This commit is contained in:
heinrich5991 2019-02-03 11:11:09 +01:00
parent 63d17483d2
commit ea80f967a9

View file

@ -180,7 +180,7 @@ public:
};
inline int64 CmaskAll() { return -1; }
inline int64 CmaskOne(int ClientID) { return 1<<ClientID; }
inline int64 CmaskOne(int ClientID) { return (int64)1<<ClientID; }
inline int64 CmaskAllExceptOne(int ClientID) { return CmaskAll()^CmaskOne(ClientID); }
inline bool CmaskIsSet(int64 Mask, int ClientID) { return (Mask&CmaskOne(ClientID)) != 0; }
#endif