diff options
author | Petre Eftime <[email protected]> | 2016-05-27 16:38:45 +0300 |
---|---|---|
committer | Petre Eftime <[email protected]> | 2016-05-27 16:39:10 +0300 |
commit | ce6896d91b526d660bc599fa80e05d9adf308194 (patch) | |
tree | 7844c567addf8917d034c646bf6f0edec11136e2 /java | |
parent | 2f8c5c7f0f26cd2a1144000ba1c0f6ea501cc79e (diff) |
java: jni: Fix typo in convert_vector_to_object
Signed-off-by: Petre Eftime <[email protected]>
Diffstat (limited to 'java')
-rw-r--r-- | java/jni/helper.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/jni/helper.hpp b/java/jni/helper.hpp index 12bbde33..51c18b00 100644 --- a/java/jni/helper.hpp +++ b/java/jni/helper.hpp @@ -99,7 +99,7 @@ jobject convert_vector_to_jobject(JNIEnv *env, std::vector<std::unique_ptr<T>>& for (unsigned int i = 0; i < array_size; ++i) { T *elem = array.at(i).release(); - jobject object = env->NewObject(clazz, clazz_ctor, (long)elem); + jobject object = env->NewObject(clazz, clazz_ctor, (jlong)elem); if (!object) { throw std::runtime_error("cannot create instance of class\n"); |