summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-20 05:44:37 +0200
committerSven Gothel <[email protected]>2020-10-20 05:44:37 +0200
commit1f6e924fe05ed45bfa4d0d901af2c4df6c1abab5 (patch)
tree3e7bb612dcf35b5ef3cff10b46f4fbc95236ad6f /java
parent2e40a6fbb84ef21bb9551c653199964e55d7954b (diff)
Normalize: Use size_t where appropriate; timestamp is uint64_t
timestamp is uint64_t - AttPDUMsg Use size_t where appropriate - OctetTypes.hpp: TROOctets* - ATTPDUTypes.hpp: AttPDUMsg* - HCITypes.hpp: HCIPacket* - HCIComm.hpp: HCIComm - L2CAPComm.hpp: L2CAPComm - MgmtTypes.hpp: MgmtCommand*, MgmtEvent* - UUID.hpp: uuid_t - DBTManager, GATTHandler, HCIHandler - HCIComm.hpp: HCIComm - BTTypes.hpp - DBTTypes.hpp
Diffstat (limited to 'java')
-rw-r--r--java/jni/BluetoothUtils.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jni/BluetoothUtils.cxx b/java/jni/BluetoothUtils.cxx
index 98741e7e..84c18bcb 100644
--- a/java/jni/BluetoothUtils.cxx
+++ b/java/jni/BluetoothUtils.cxx
@@ -76,7 +76,7 @@ jstring Java_org_tinyb_BluetoothUtils_decodeUTF8String(JNIEnv *env, jclass clazz
if( NULL == buffer_ptr ) {
throw std::invalid_argument("GetPrimitiveArrayCritical(byte array) is null");
}
- sres = jau::dfa_utf8_decode(buffer_ptr+offset, size);
+ sres = jau::dfa_utf8_decode(buffer_ptr+offset, static_cast<size_t>(size));
}
return jau::from_string_to_jstring(env, sres);
}