aboutsummaryrefslogtreecommitdiffstats
path: root/libgamma_GammaRamps.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_GammaRamps.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 '')
-rw-r--r--libgamma_GammaRamps.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/libgamma_GammaRamps.c b/libgamma_GammaRamps.c
index eb233b7..ebb2e98 100644
--- a/libgamma_GammaRamps.c
+++ b/libgamma_GammaRamps.c
@@ -73,9 +73,9 @@ Java_libgamma_GammaRamps_libgamma_1gamma_1ramps8_1create(JNIEnv *env, jclass cla
int r;
if (!ramps)
return fail(env, 0);
- ramps->red_size = red_size;
- ramps->green_size = green_size;
- ramps->blue_size = blue_size;
+ ramps->red_size = (size_t)red_size;
+ ramps->green_size = (size_t)green_size;
+ ramps->blue_size = (size_t)blue_size;
r = libgamma_gamma_ramps8_initialise(ramps);
if (r)
return fail(env, r);
@@ -103,9 +103,9 @@ Java_libgamma_GammaRamps_libgamma_1gamma_1ramps16_1create(JNIEnv *env, jclass cl
int r;
if (!ramps)
return fail(env, 0);
- ramps->red_size = red_size;
- ramps->green_size = green_size;
- ramps->blue_size = blue_size;
+ ramps->red_size = (size_t)red_size;
+ ramps->green_size = (size_t)green_size;
+ ramps->blue_size = (size_t)blue_size;
r = libgamma_gamma_ramps16_initialise(ramps);
if (r)
return fail(env, r);
@@ -133,9 +133,9 @@ Java_libgamma_GammaRamps_libgamma_1gamma_1ramps32_1create(JNIEnv *env, jclass cl
int r;
if (!ramps)
return fail(env, 0);
- ramps->red_size = red_size;
- ramps->green_size = green_size;
- ramps->blue_size = blue_size;
+ ramps->red_size = (size_t)red_size;
+ ramps->green_size = (size_t)green_size;
+ ramps->blue_size = (size_t)blue_size;
r = libgamma_gamma_ramps32_initialise(ramps);
if (r)
return fail(env, r);
@@ -163,9 +163,9 @@ Java_libgamma_GammaRamps_libgamma_1gamma_1ramps64_1create(JNIEnv *env, jclass cl
int r;
if (!ramps)
return fail(env, 0);
- ramps->red_size = red_size;
- ramps->green_size = green_size;
- ramps->blue_size = blue_size;
+ ramps->red_size = (size_t)red_size;
+ ramps->green_size = (size_t)green_size;
+ ramps->blue_size = (size_t)blue_size;
r = libgamma_gamma_ramps64_initialise(ramps);
if (r)
return fail(env, r);
@@ -193,9 +193,9 @@ Java_libgamma_GammaRamps_libgamma_1gamma_1rampsf_1create(JNIEnv *env, jclass cla
int r;
if (!ramps)
return fail(env, 0);
- ramps->red_size = red_size;
- ramps->green_size = green_size;
- ramps->blue_size = blue_size;
+ ramps->red_size = (size_t)red_size;
+ ramps->green_size = (size_t)green_size;
+ ramps->blue_size = (size_t)blue_size;
r = libgamma_gamma_rampsf_initialise(ramps);
if (r)
return fail(env, r);
@@ -223,9 +223,9 @@ Java_libgamma_GammaRamps_libgamma_1gamma_1rampsd_1create(JNIEnv *env, jclass cla
int r;
if (!ramps)
return fail(env, 0);
- ramps->red_size = red_size;
- ramps->green_size = green_size;
- ramps->blue_size = blue_size;
+ ramps->red_size = (size_t)red_size;
+ ramps->green_size = (size_t)green_size;
+ ramps->blue_size = (size_t)blue_size;
r = libgamma_gamma_rampsd_initialise(ramps);
if (r)
return fail(env, r);