Fix passing of the special value HOTPLUG_MATCH_ANY, it needs to be an int so as to not hide one of the short/byte values.

This commit is contained in:
Luca Longinotti 2013-09-09 10:59:24 +02:00
parent b166d2ef0d
commit 67e09e25ae
1 changed files with 2 additions and 2 deletions

View File

@ -614,7 +614,7 @@ public final class LibUsb
// Wildcard matching for hotplug events
/** Match any vendorId or productId or deviceClass. */
public static final byte HOTPLUG_MATCH_ANY = -1;
public static final int HOTPLUG_MATCH_ANY = -1;
/**
* Hotplug callbacks (to correctly manage calls and additional data).
@ -2612,7 +2612,7 @@ public final class LibUsb
*/
public static synchronized int hotplugRegisterCallback(
final Context context, final int events, final int flags,
final short vendorId, final short productId, final byte deviceClass,
final int vendorId, final int productId, final int deviceClass,
final HotplugCallback callback, final Object userData,
final HotplugCallbackHandle callbackHandle)
{