16b atomic load fix

This commit is contained in:
Nekotekina 2017-02-05 15:49:51 +03:00
parent 11b0b6958f
commit 9767cc84b0
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ struct atomic_storage<T, 16> : atomic_storage<T, 0>
static inline T load(const T& dest)
{
llong result[2];
llong result[2]{0, 0};
_InterlockedCompareExchange128((volatile llong*)&dest, 0, 0, result);
return *(T*)+result;
}