summaryrefslogtreecommitdiffstats
path: root/nxp/jni/com_android_nfc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'nxp/jni/com_android_nfc.cpp')
-rw-r--r--nxp/jni/com_android_nfc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/nxp/jni/com_android_nfc.cpp b/nxp/jni/com_android_nfc.cpp
index 2852706a..291bf207 100644
--- a/nxp/jni/com_android_nfc.cpp
+++ b/nxp/jni/com_android_nfc.cpp
@@ -156,8 +156,8 @@ struct nfc_jni_native_data* nfc_jni_get_nat(JNIEnv *e, jobject o)
{
/* Retrieve native structure address */
ScopedLocalRef<jclass> c(e, e->GetObjectClass(o));
- jfieldID f = e->GetFieldID(c.get(), "mNative", "I");
- return (struct nfc_jni_native_data*) e->GetIntField(o, f);
+ jfieldID f = e->GetFieldID(c.get(), "mNative", "J");
+ return (struct nfc_jni_native_data*)e->GetLongField(o, f);
}
struct nfc_jni_native_data* nfc_jni_get_nat_ext(JNIEnv *e)