diff options
author | Marti Maria <marti.maria@littlecms.com> | 2020-10-01 18:06:34 +0200 |
---|---|---|
committer | Marti Maria <marti.maria@littlecms.com> | 2020-10-01 18:06:34 +0200 |
commit | 33848b63af5616527c8b395117d9d055954320ca (patch) | |
tree | ff77090ccfe05ff97c1ff168be907235a07d95e9 /utils | |
parent | d387d03103911d20582f1d9548d89738c993c4b8 (diff) | |
download | lcms2-33848b63af5616527c8b395117d9d055954320ca.tar.gz |
cosmetic changes
to make codeQL happy
Diffstat (limited to 'utils')
-rw-r--r-- | utils/common/vprf.c | 2 | ||||
-rw-r--r-- | utils/jpgicc/jpgicc.c | 4 | ||||
-rw-r--r-- | utils/tificc/tificc.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/utils/common/vprf.c b/utils/common/vprf.c index cba1ac4..7523f6f 100644 --- a/utils/common/vprf.c +++ b/utils/common/vprf.c @@ -254,7 +254,7 @@ cmsBool SaveMemoryBlock(const cmsUInt8Number* Buffer, cmsUInt32Number dwLen, con } if (fwrite(Buffer, 1, dwLen, out) != dwLen) { - FatalError("Cannot write %ld bytes to %s", dwLen, Filename); + FatalError("Cannot write %ld bytes to %s", (long) dwLen, Filename); return FALSE; } diff --git a/utils/jpgicc/jpgicc.c b/utils/jpgicc/jpgicc.c index 123d6e0..2d6fc13 100644 --- a/utils/jpgicc/jpgicc.c +++ b/utils/jpgicc/jpgicc.c @@ -864,8 +864,8 @@ int DoTransform(cmsHTRANSFORM hXForm, int OutputColorSpace) if (EmbedProfile && cOutProf) DoEmbedProfile(cOutProf); - ScanLineIn = (JSAMPROW) malloc(Decompressor.output_width * Decompressor.num_components); - ScanLineOut = (JSAMPROW) malloc(Compressor.image_width * Compressor.num_components); + ScanLineIn = (JSAMPROW) malloc((size_t) Decompressor.output_width * Decompressor.num_components); + ScanLineOut = (JSAMPROW) malloc((size_t) Compressor.image_width * Compressor.num_components); while (Decompressor.output_scanline < Decompressor.output_height) { diff --git a/utils/tificc/tificc.c b/utils/tificc/tificc.c index 3973bc3..4cf8ec8 100644 --- a/utils/tificc/tificc.c +++ b/utils/tificc/tificc.c @@ -684,7 +684,7 @@ void DoEmbedProfile(TIFF* Out, const char* ProfileFile) EmbedLen = (cmsUInt32Number) fread(EmbedBuffer, 1, (size_t) size, f); if (EmbedLen != (cmsUInt32Number) size) - FatalError("Cannot read %ld bytes to %s", size, ProfileFile); + FatalError("Cannot read %ld bytes to %s", (long) size, ProfileFile); fclose(f); EmbedBuffer[EmbedLen] = 0; |