runs
[urcu.git] / urcu.h
diff --git a/urcu.h b/urcu.h
index d417f34b52ddd1ce1509835dd0b7f062436d96f2..363021d7832927e288705e42f7c31f4d36486d72 100644 (file)
--- a/urcu.h
+++ b/urcu.h
@@ -15,7 +15,7 @@
 static inline void atomic_inc(int *v)
 {
        asm volatile("lock; incl %0"
-                    : "+m" (v->counter));
+                    : "+m" (*v));
 }
 
 /* Nop everywhere except on alpha. */
This page took 0.022857 seconds and 4 git commands to generate.