mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-23 10:08:00 +02:00
Fixed Event<T> when allocator doesn't align (64-bit)
This commit is contained in:
parent
fc07561044
commit
837184e674
2 changed files with 12 additions and 5 deletions
|
@ -13,10 +13,17 @@ namespace System
|
|||
// If we are enumerating then mData points to the enumerator.
|
||||
int mData;
|
||||
|
||||
#if BF_64_BIT
|
||||
const int sIsEnumerating = (.)0x8000'0000'0000'0000;
|
||||
const int sHadEnumRemoves = 0x4000'0000'0000'0000;
|
||||
const int sFlagsMask = (.)0xC000'0000'0000'0000;
|
||||
const int sDataMask = ~sFlagsMask;
|
||||
#else
|
||||
const int sIsEnumerating = 1;
|
||||
const int sHadEnumRemoves = 2;
|
||||
const int sFlagsMask = 3;
|
||||
const int sDataMask = ~sFlagsMask;
|
||||
#endif
|
||||
|
||||
public bool HasListeners
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue