diff options
-rw-r--r-- | libusb/os/windows_usb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h index e0ca419..ddf1748 100644 --- a/libusb/os/windows_usb.h +++ b/libusb/os/windows_usb.h @@ -92,7 +92,7 @@ inline void upperize(char* str) { #define ERR_BUFFER_SIZE 256 // Handle code for HID interface that have been claimed ("dibs") -#define INTERFACE_CLAIMED ((HANDLE)(LONG_PTR)0xD1B5) +#define INTERFACE_CLAIMED ((HANDLE)(intptr_t)0xD1B5) // Additional return code for HID operations that completed synchronously #define LIBUSB_COMPLETED (LIBUSB_SUCCESS + 1) |