diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2022-11-21 16:28:40 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2022-11-21 16:28:40 +0100 |
commit | fcf4fe2e30b970e6790f6e089652c8c1ef2445f6 (patch) | |
tree | e6b6020bbffe24f11b486e52f0567e27e6105130 /camlibs | |
parent | c3fdd091a3719ae40044c99ae9fb919f842be126 (diff) | |
download | libgphoto2-fcf4fe2e30b970e6790f6e089652c8c1ef2445f6.tar.gz |
try to fix codeql integer expansion warning
Diffstat (limited to 'camlibs')
-rw-r--r-- | camlibs/sq905/library.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/sq905/library.c b/camlibs/sq905/library.c index addbd9975..f8a5e28c0 100644 --- a/camlibs/sq905/library.c +++ b/camlibs/sq905/library.c @@ -339,7 +339,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, do_preprocess = 1; if (camera->pl->last_fetched_data) break; - camera->pl->last_fetched_data = malloc (nb_frames*w*h); + camera->pl->last_fetched_data = malloc ((long)nb_frames*w*h); if (!camera->pl->last_fetched_data) { sq_rewind(camera->port, camera->pl); return GP_ERROR_NO_MEMORY; @@ -387,7 +387,7 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, size = size + (w * h * 3); GP_DEBUG ("size = %i\n", size); if (comp_ratio>1) { - rawdata = malloc (w*h); + rawdata = malloc ((long)w*h); if (!rawdata) { free (ppm); return GP_ERROR_NO_MEMORY; |