diff options
Diffstat (limited to 'arch/x86/machine/atomic.h')
-rw-r--r-- | arch/x86/machine/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/machine/atomic.h b/arch/x86/machine/atomic.h index 6844f328..9f130a5a 100644 --- a/arch/x86/machine/atomic.h +++ b/arch/x86/machine/atomic.h @@ -65,7 +65,7 @@ MACRO_BEGIN \ if (sizeof(*(ptr)) != 8) { \ __atomic_store_n(ptr, val, mo); \ } else { \ - typeof(val) ___oval, ___nval; \ + typeof(*(ptr)) ___oval, ___nval; \ bool ___done; \ \ ___oval = *(ptr); \ |