JNI interface changed for TJ class, since it only has static methods now
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@339 632fc199-4ca6-4c93-a231-07263d6284db
diff --git a/java/TJ.h b/java/TJ.h
index ab8b3fb..7be782d 100644
--- a/java/TJ.h
+++ b/java/TJ.h
@@ -39,7 +39,7 @@
* Signature: (II)J
*/
JNIEXPORT jlong JNICALL Java_TJ_BUFSIZE
- (JNIEnv *, jobject, jint, jint);
+ (JNIEnv *, jclass, jint, jint);
#ifdef __cplusplus
}
diff --git a/turbojpeg-jni.c b/turbojpeg-jni.c
index 436a6dd..531ea6e 100644
--- a/turbojpeg-jni.c
+++ b/turbojpeg-jni.c
@@ -50,7 +50,7 @@
}
JNIEXPORT jlong JNICALL Java_TJ_BUFSIZE
- (JNIEnv *env, jobject obj, jint width, jint height)
+ (JNIEnv *env, jclass cls, jint width, jint height)
{
return TJBUFSIZE(width, height);
}