summaryrefslogtreecommitdiff
path: root/camlibs/jl2005c
diff options
context:
space:
mode:
authorSiim Meerits <sh0@yutani.ee>2020-08-02 06:35:16 +0300
committerMarcus Meissner <marcus@jet.franken.de>2020-08-31 12:24:17 +0200
commitf0812c02c4a7b2e0649c944ae4f9e0ba0384027c (patch)
treea1a85af0b8122fd68d4e261a1ec8daa2956404e4 /camlibs/jl2005c
parentc8f90a48261cc33e7fe146360755655c44d956c4 (diff)
downloadlibgphoto2-f0812c02c4a7b2e0649c944ae4f9e0ba0384027c.tar.gz
Fix jl2005c camlib compilation warnings.
Resolve signed-unsigned issues in histogram(...) and white_balance(...) which are functions that have been copied to multiple camlibs.
Diffstat (limited to 'camlibs/jl2005c')
-rw-r--r--camlibs/jl2005c/img_enhance.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/camlibs/jl2005c/img_enhance.c b/camlibs/jl2005c/img_enhance.c
index 956879078..1db7e9ce2 100644
--- a/camlibs/jl2005c/img_enhance.c
+++ b/camlibs/jl2005c/img_enhance.c
@@ -63,7 +63,7 @@ int
histogram (unsigned char *data, unsigned int size, int *htable_r,
int *htable_g, int *htable_b)
{
- int x;
+ unsigned int x;
/* Initializations */
for (x = 0; x < 0x100; x++) {
htable_r[x] = 0;
@@ -84,7 +84,8 @@ histogram (unsigned char *data, unsigned int size, int *htable_r,
int
white_balance (unsigned char *data, unsigned int size, float saturation)
{
- int x, r, g, b, max, d;
+ unsigned int x, max;
+ int r, g, b, d;
double r_factor, g_factor, b_factor, max_factor;
int htable_r[0x100], htable_g[0x100], htable_b[0x100];
unsigned char gtable[0x100];