diff options
-rw-r--r-- | libusb/os/poll_windows.c | 4 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libusb/os/poll_windows.c b/libusb/os/poll_windows.c index 830c7e5..f735245 100644 --- a/libusb/os/poll_windows.c +++ b/libusb/os/poll_windows.c @@ -135,12 +135,14 @@ static int install_fd(struct file_descriptor *fd) for (n = 0; n < fd_table_size; n += BITMAP_BITS_PER_WORD) { unsigned int idx = n / BITMAP_BITS_PER_WORD; ULONG mask, pos = 0U; + unsigned char nonzero; mask = ~fd_table_bitmap[idx]; if (mask == 0U) continue; - assert(_BitScanForward(&pos, mask)); + nonzero = _BitScanForward(&pos, mask); + assert(nonzero); fd_table_bitmap[idx] |= 1U << pos; n += pos; break; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 18c8cb7..7e27bf5 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11452 +#define LIBUSB_NANO 11453 |