aboutsummaryrefslogtreecommitdiffstats
path: root/java/jni/BluetoothManager.cxx
diff options
context:
space:
mode:
authorPetre Eftime <[email protected]>2016-05-31 13:17:36 +0300
committerPetre Eftime <[email protected]>2016-05-31 13:18:14 +0300
commit9185ca689a28dac90a85acaa93aa26edbc2ccdeb (patch)
tree16ee1be86b0d5ff85aafd2ced243dba02c5dce5a /java/jni/BluetoothManager.cxx
parent8978359e513e5f1ca6267be069004a539fb0a388 (diff)
java: jni: Fix other typos in JNI code
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'java/jni/BluetoothManager.cxx')
-rw-r--r--java/jni/BluetoothManager.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/jni/BluetoothManager.cxx b/java/jni/BluetoothManager.cxx
index e2f68ab..d5c652e 100644
--- a/java/jni/BluetoothManager.cxx
+++ b/java/jni/BluetoothManager.cxx
@@ -138,7 +138,7 @@ jobject Java_tinyb_BluetoothManager_find(JNIEnv *env, jobject obj, jint type,
jclass clazz = search_class(env, *b_object_naked);
jmethodID clazz_ctor = search_method(env, clazz, "<init>", "(J)V", false);
- jobject result = env->NewObject(clazz, clazz_ctor, (long)b_object_naked);
+ jobject result = env->NewObject(clazz, clazz_ctor, (jlong)b_object_naked);
return result;
@@ -186,7 +186,7 @@ jobject Java_tinyb_BluetoothManager_getObject(JNIEnv *env, jobject obj, jint typ
jclass clazz = search_class(env, *b_object_naked);
jmethodID clazz_ctor = search_method(env, clazz, "<init>", "(J)V", false);
- jobject result = env->NewObject(clazz, clazz_ctor, (long)b_object_naked);
+ jobject result = env->NewObject(clazz, clazz_ctor, (jlong)b_object_naked);
return result;
} catch (std::bad_alloc &e) {
raise_java_oom_exception(env, e);