Also make timeout read a long.
This commit is contained in:
parent
b239bfdedd
commit
a50fd0ecb5
@ -161,9 +161,9 @@ JNIEXPORT void JNICALL METHOD_NAME(Transfer, setTimeout)
|
||||
}
|
||||
|
||||
/**
|
||||
* int timeout()
|
||||
* long timeout()
|
||||
*/
|
||||
JNIEXPORT jint JNICALL METHOD_NAME(Transfer, timeout)
|
||||
JNIEXPORT jlong JNICALL METHOD_NAME(Transfer, timeout)
|
||||
(
|
||||
JNIEnv *env, jobject this
|
||||
)
|
||||
@ -171,7 +171,7 @@ JNIEXPORT jint JNICALL METHOD_NAME(Transfer, timeout)
|
||||
struct libusb_transfer *transfer = unwrapTransfer(env, this);
|
||||
if (!transfer) return 0;
|
||||
|
||||
return (jint) transfer->timeout;
|
||||
return transfer->timeout;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -120,7 +120,7 @@ public final class Transfer
|
||||
*
|
||||
* @return The timeout.
|
||||
*/
|
||||
public native int timeout();
|
||||
public native long timeout();
|
||||
|
||||
/**
|
||||
* Sets the timeout for this transfer in milliseconds. A value of 0
|
||||
|
||||
Loading…
Reference in New Issue
Block a user