[libgda] GdaJValue: const corrections to avoid warnings.



commit 894077b86d3b86cb975b398645311f89be31e310
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Oct 29 22:04:15 2017 +0100

    GdaJValue: const corrections to avoid warnings.

 providers/jdbc/GdaJValue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/providers/jdbc/GdaJValue.c b/providers/jdbc/GdaJValue.c
index e6583f8..6aefd49 100644
--- a/providers/jdbc/GdaJValue.c
+++ b/providers/jdbc/GdaJValue.c
@@ -372,7 +372,7 @@ JNICALL Java_GdaJValue_getCBlob (JNIEnv *jenv, G_GNUC_UNUSED jobject obj, jlong
 {
        GdaBlob *blob;
 
-       blob = gda_value_get_blob ((GValue *) jni_jlong_to_cpointer (c_pointer));
+       blob = (GdaBlob*)gda_value_get_blob ((GValue *) jni_jlong_to_cpointer (c_pointer));
        if (!blob) {
                jclass cls;
                cls = (*jenv)->FindClass (jenv, "java/lang/IllegalArgumentException");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]