update x86_64 cmpxchg
[urcu.git] / arch_atomic_x86.h
index 97a7cdd019129b8f2c7cf190991e89d5fef52a2a..6b33d453285f2e11535f30a9f9f7621b31a5c184 100644 (file)
@@ -75,7 +75,7 @@ unsigned long _atomic_cmpxchg(volatile void *addr, unsigned long old,
 #if (BITS_PER_LONG == 64)
        case 8:
        {
-               unsigned int result = old;
+               unsigned long result = old;
                __asm__ __volatile__(
                "lock; cmpxchgq %2, %1"
                        : "+a"(result), "+m"(*__hp(addr))
This page took 0.022694 seconds and 4 git commands to generate.