You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2008/06/27 22:38:54 UTC

svn commit: r672380 - /harmony/enhanced/classlib/trunk/modules/imageio/src/main/native/jpegencoder/shared/JpegEncoder.c

Author: hindessm
Date: Fri Jun 27 13:38:54 2008
New Revision: 672380

URL: http://svn.apache.org/viewvc?rev=672380&view=rev
Log:
More compiler warning fixes.

Modified:
    harmony/enhanced/classlib/trunk/modules/imageio/src/main/native/jpegencoder/shared/JpegEncoder.c

Modified: harmony/enhanced/classlib/trunk/modules/imageio/src/main/native/jpegencoder/shared/JpegEncoder.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/imageio/src/main/native/jpegencoder/shared/JpegEncoder.c?rev=672380&r1=672379&r2=672380&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/imageio/src/main/native/jpegencoder/shared/JpegEncoder.c (original)
+++ harmony/enhanced/classlib/trunk/modules/imageio/src/main/native/jpegencoder/shared/JpegEncoder.c Fri Jun 27 13:38:54 2008
@@ -264,7 +264,7 @@
 JNIEXPORT void JNICALL 
 Java_org_apache_harmony_x_imageio_plugins_jpeg_JPEGImageWriter_dispose(JNIEnv *env, jobject obj, jlong handle) {
 
-    struct jpeg_compress_struct * cinfo = (struct jpeg_compress_struct *) handle;
+    struct jpeg_compress_struct * cinfo = (struct jpeg_compress_struct *) (IDATA)handle;
     enc_client_data_ptr cdata = (enc_client_data_ptr) cinfo->client_data;
 
     if (cdata->ios != NULL) {
@@ -307,7 +307,7 @@
  */
 JNIEXPORT jlong JNICALL 
 Java_org_apache_harmony_x_imageio_plugins_jpeg_JPEGImageWriter_initCompressionObj(JNIEnv *env, jobject encoder) {
-    return (jlong) ios_create_compress(env);
+    return (jlong) (IDATA)ios_create_compress(env);
 }
 
 /*
@@ -318,7 +318,7 @@
 JNIEXPORT void JNICALL 
 Java_org_apache_harmony_x_imageio_plugins_jpeg_JPEGImageWriter_setIOS(JNIEnv *env, jobject encoder, jobject iosObj, jlong handle) {
 
-    struct jpeg_compress_struct * cinfo = (struct jpeg_compress_struct *) handle;
+    struct jpeg_compress_struct * cinfo = (struct jpeg_compress_struct *) (IDATA)handle;
     enc_client_data_ptr cdata = (enc_client_data_ptr) cinfo->client_data;
 
     if (cdata->ios != NULL) {
@@ -365,7 +365,7 @@
     }
 
     
-    cinfo = (struct jpeg_compress_struct *) handle;
+    cinfo = (struct jpeg_compress_struct *) (IDATA)handle;
     err_mgr = (enc_error_mgr_ptr) cinfo->err;
 
     if (setjmp(err_mgr->jmp_buffer)) {