aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_AdjustmentMethod.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;