diff options
author | Mattias Andrée <maandree@kth.se> | 2022-07-21 12:51:56 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2022-07-21 12:51:56 +0200 |
commit | f96123d8cff0c6183cdc889a3a4df343be5f1ab1 (patch) | |
tree | 532e9e0e9b44af35e6bc987f06c37cb0aad02651 /libgamma_CRTC.c | |
parent | Improve makefile (diff) | |
download | jlibgamma-f96123d8cff0c6183cdc889a3a4df343be5f1ab1.tar.gz jlibgamma-f96123d8cff0c6183cdc889a3a4df343be5f1ab1.tar.bz2 jlibgamma-f96123d8cff0c6183cdc889a3a4df343be5f1ab1.tar.xz |
Fix warnings1.0.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libgamma_CRTC.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgamma_CRTC.c b/libgamma_CRTC.c index 284beee..fe7197d 100644 --- a/libgamma_CRTC.c +++ b/libgamma_CRTC.c @@ -57,7 +57,7 @@ Java_libgamma_CRTC_libgamma_1crtc_1create(JNIEnv *env, jclass class, jlong parti int r; if (!state) return fail(env, 0); - r = libgamma_crtc_initialise(state, super, crtc); + r = libgamma_crtc_initialise(state, super, (size_t)crtc); if (r) return fail(env, r); return ok(env, state); @@ -123,8 +123,8 @@ Java_libgamma_CRTC_libgamma_1get_1crtc_1information(JNIEnv *env, jclass class, j libgamma_get_crtc_information(&info, this, fields); if (info.edid) { - edid = (*env)->NewByteArray(env, info.edid_length); - (*env)->SetByteArrayRegion(env, edid, 0, info.edid_length, (const jbyte*)(info.edid)); + edid = (*env)->NewByteArray(env, (jsize)info.edid_length); + (*env)->SetByteArrayRegion(env, edid, 0, (jsize)info.edid_length, (const jbyte*)(info.edid)); free(info.edid); } |