summaryrefslogtreecommitdiff
path: root/camlibs/digigr8/library.c
diff options
context:
space:
mode:
authorSiim Meerits <sh0@yutani.ee>2020-08-02 05:59:28 +0300
committerMarcus Meissner <marcus@jet.franken.de>2020-08-31 12:12:18 +0200
commit87c1abdf8e3c91540d91398d734e1f5143c7bc47 (patch)
treeb714f3b88870163b56bdb9665fcc92853447fae0 /camlibs/digigr8/library.c
parent4c1fa84d8456303ec4d4513a0cbac8401bfd8033 (diff)
downloadlibgphoto2-87c1abdf8e3c91540d91398d734e1f5143c7bc47.tar.gz
Fix digigr8 camlib compilation warnings.
* digi_postprocess.c: Signed-unsigned issues in histogram(...) and white_balance(...) which are functions that have been copied to multiple camlibs. * library.c: Signed-unsigned issue. It is guaranteed that 'w' and 'h' are unsigned integers. Also if they were negative then malloc() used later would explode.
Diffstat (limited to 'camlibs/digigr8/library.c')
-rw-r--r--camlibs/digigr8/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/digigr8/library.c b/camlibs/digigr8/library.c
index d4a931b8e..8b339e62a 100644
--- a/camlibs/digigr8/library.c
+++ b/camlibs/digigr8/library.c
@@ -198,7 +198,7 @@ get_file_func(CameraFilesystem *fs, const char *folder, const char *filename,
int status = GP_OK;
Camera *camera = user_data;
unsigned int b;
- int w, h;
+ unsigned int w, h;
int k, next;
unsigned char comp_ratio;
unsigned char lighting;