return 0;\r
\r
jobject pixel_buffer = env->NewDirectByteBuffer((void*)pixmap->pixels, pixmap->width * pixmap->height * pixmap->format);\r
- long* p_native_data = (long*)env->GetPrimitiveArrayCritical(nativeData, 0);\r
- p_native_data[0] = (long)pixmap;\r
+ jlong* p_native_data = (jlong*)env->GetPrimitiveArrayCritical(nativeData, 0);\r
+ p_native_data[0] = (jlong)pixmap;\r
p_native_data[1] = pixmap->width;\r
p_native_data[2] = pixmap->height;\r
p_native_data[3] = pixmap->format;\r
return 0;\r
\r
jobject pixel_buffer = env->NewDirectByteBuffer((void*)pixmap->pixels, pixmap->width * pixmap->height * pixmap->format);\r
- long* p_native_data = (long*)env->GetPrimitiveArrayCritical(nativeData, 0);\r
- p_native_data[0] = (long)pixmap;\r
+ jlong* p_native_data = (jlong*)env->GetPrimitiveArrayCritical(nativeData, 0);\r
+ p_native_data[0] = (jlong)pixmap;\r
p_native_data[1] = pixmap->width;\r
p_native_data[2] = pixmap->height;\r
p_native_data[3] = pixmap->format;\r