Fix hb_atomic_int_set() implementation for HB_NO_MT

As pointed out by Jonathan Kew.
This commit is contained in:
Behdad Esfahbod 2012-05-24 10:46:39 -04:00
parent 3b9b7133be
commit cde1c0114b
1 changed files with 1 additions and 1 deletions

View 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