mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
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:
parent
63d17483d2
commit
ea80f967a9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue