aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_AdjustmentMethod.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2022-07-21 12:51:56 +0200
committerMattias Andrée <maandree@kth.se>2022-07-21 12:51:56 +0200
commitf96123d8cff0c6183cdc889a3a4df343be5f1ab1 (patch)
tree532e9e0e9b44af35e6bc987f06c37cb0aad02651 /libgamma_AdjustmentMethod.c
parentImprove makefile (diff)
downloadjlibgamma-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 'libgamma_AdjustmentMethod.c')
-rw-r--r--libgamma_AdjustmentMethod.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgamma_AdjustmentMethod.c b/libgamma_AdjustmentMethod.c
index b5f9fe1..968aaaf 100644
--- a/libgamma_AdjustmentMethod.c
+++ b/libgamma_AdjustmentMethod.c
@@ -34,11 +34,11 @@ Java_libgamma_AdjustmentMethod_libgamma_1list_1methods(JNIEnv *env, jclass class
if (n > LIBGAMMA_METHOD_COUNT)
abort(); /* Prevented by the #if above and package maintenance */
- rc = (*env)->NewIntArray(env, n);
+ rc = (*env)->NewIntArray(env, (jsize)n);
/* Remember, jint is 32 bits, int is 16+ bits. */
for (i = 0; i < n; i++)
- (*env)->SetIntArrayRegion(env, rc, i, 1, methods + i);
+ (*env)->SetIntArrayRegion(env, rc, (jsize)i, 1, methods + i);
return rc;
(void) class;