diff options
author | Sven Gothel <[email protected]> | 2020-10-20 05:51:29 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-10-20 05:51:29 +0200 |
commit | 1c54ef46cb137dec49748c5b9c237c6ccd139f6f (patch) | |
tree | afa877818b344bda20f270cdfd7c01ba84657584 /java/jni | |
parent | 94205b2e99d114f4238e2b846dce980901a59459 (diff) |
Minor int -> uint16_t explicit cast
Turns our there are too many to handle for now.
Trust that i.e. dev_id value range does not exceed expected range,
but even though - it would just end up in a failed call.
Diffstat (limited to 'java/jni')
-rw-r--r-- | java/jni/direct_bt/DBTAdapter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jni/direct_bt/DBTAdapter.cxx b/java/jni/direct_bt/DBTAdapter.cxx index ce0b451c..05bc0aa7 100644 --- a/java/jni/direct_bt/DBTAdapter.cxx +++ b/java/jni/direct_bt/DBTAdapter.cxx @@ -473,7 +473,7 @@ jboolean Java_direct_1bt_tinyb_DBTAdapter_addDeviceToWhitelist__Ljava_lang_Strin EUI48 address(saddress); const BDAddressType addressType = static_cast<BDAddressType>( jaddressType ); const HCIWhitelistConnectType ctype = static_cast<HCIWhitelistConnectType>( jctype ); - return adapter->addDeviceToWhitelist(address, addressType, ctype, min_interval, max_interval, latency, timeout); + return adapter->addDeviceToWhitelist(address, addressType, ctype, (uint16_t)min_interval, (uint16_t)max_interval, (uint16_t)latency, (uint16_t)timeout); } catch(...) { rethrow_and_raise_java_exception(env); } |