darwin: fix OSAtomicAdd32Barrier argument ordering
authorNathan Hjelm <hjelmn@me.com>
Wed, 21 Sep 2016 15:01:38 +0000 (09:01 -0600)
committerNathan Hjelm <hjelmn@me.com>
Wed, 21 Sep 2016 15:01:38 +0000 (09:01 -0600)
Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/darwin_usb.c
libusb/version_nano.h

index b0d8a8a7066a68cac24e40a4b1d8b69fa4038950..c2285cd7cb3e42a55069802f2b85ec5bc10f43cb 100644 (file)
@@ -52,7 +52,7 @@ _Atomic int32_t initCount = ATOMIC_VAR_INIT(0);
 #include <libkern/OSAtomic.h>
 
 /* OSAtomicAdd32Barrier returns the new value */
-#define libusb_darwin_atomic_fetch_add(x, y) (OSAtomicAdd32Barrier(x, y) - y)
+#define libusb_darwin_atomic_fetch_add(x, y) (OSAtomicAdd32Barrier(y, x) - y)
 
 static volatile int32_t initCount = 0;
 #endif
index ccf06691c6a9b9faa032c41bdf9a157b1d2565b1..1eb7fa85f9bef873993a3ee2b2a7fd6a951d8d58 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11148
+#define LIBUSB_NANO 11149