Also make timeout read a long.

This commit is contained in:
Luca Longinotti 2013-06-16 18:07:47 +02:00
parent b239bfdedd
commit a50fd0ecb5
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}
/**

View File

@ -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