diff options
author | Siim Meerits <sh0@yutani.ee> | 2020-08-02 05:59:28 +0300 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2020-08-31 12:12:18 +0200 |
commit | 87c1abdf8e3c91540d91398d734e1f5143c7bc47 (patch) | |
tree | b714f3b88870163b56bdb9665fcc92853447fae0 /camlibs/digigr8/library.c | |
parent | 4c1fa84d8456303ec4d4513a0cbac8401bfd8033 (diff) | |
download | libgphoto2-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.c | 2 |
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; |