summaryrefslogtreecommitdiff
path: root/camlibs/agfa-cl20
diff options
context:
space:
mode:
authorSiim Meerits <sh0@yutani.ee>2020-08-03 01:30:15 +0300
committerMarcus Meissner <marcus@jet.franken.de>2020-08-28 16:28:47 +0200
commit42c08da9186e53b9c932e6265f15c93cb907eee9 (patch)
tree8f42c117ed684954d2d1fbbab080633dafd08afb /camlibs/agfa-cl20
parent87815df5765f1d262a986a8d38a8113d38f81fed (diff)
downloadlibgphoto2-42c08da9186e53b9c932e6265f15c93cb907eee9.tar.gz
Fix agfa-cl20 camlib compilation warnings.
Resolves signed-unsigned comparison issues by changing 'size' variable type to unsigned. Comparisons involving 'size' generally already were done in unsigned mode. This variable cannot be negative due to its use in numerous 'calloc' calls.
Diffstat (limited to 'camlibs/agfa-cl20')
-rw-r--r--camlibs/agfa-cl20/agfa_cl20.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/agfa-cl20/agfa_cl20.c b/camlibs/agfa-cl20/agfa_cl20.c
index e9c94368e..483919f91 100644
--- a/camlibs/agfa-cl20/agfa_cl20.c
+++ b/camlibs/agfa-cl20/agfa_cl20.c
@@ -153,7 +153,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
{
Camera *camera = privdata;
int n = -1;
- int size = -1;
+ unsigned int size = -1;
unsigned char hb, lb;
unsigned long j;
unsigned int app1len = -1;