Fix hb_atomic_int_set() implementation for HB_NO_MT
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 24 May 2012 14:46:39 +0000 (10:46 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 24 May 2012 14:46:39 +0000 (10:46 -0400)
As pointed out by Jonathan Kew.

src/hb-atomic-private.hh

index 03d7df1..684e856 100644 (file)
@@ -79,7 +79,7 @@ typedef volatile int hb_atomic_int_t;
 #define HB_ATOMIC_INT_NIL 1
 typedef volatile int hb_atomic_int_t;
 #define hb_atomic_int_add(AI, V)       ((AI) += (V), (AI) - (V))
-#define hb_atomic_int_set(AI)          ((void) ((AI) = (V)))
+#define hb_atomic_int_set(AI, V)       ((void) ((AI) = (V)))
 #define hb_atomic_int_get(AI)          (AI)
 
 #endif