• R/O
  • SSH

GM: Commit

Main GraphicsMagick source repository


Commit MetaInfo

Revision4870b654f4bb3bc82f86f28dac0aba266f1f8171 (tree)
Time2022-01-10 00:00:26
AuthorBob Friesenhahn <bfriesen@Grap...>
CommiterBob Friesenhahn

Log Message

Eliminate signed vs unsigned warnings.

Change Summary

Incremental Difference

diff -r 121de89bed95 -r 4870b654f4bb coders/mat.c
--- a/coders/mat.c Sat Jan 08 17:14:10 2022 -0600
+++ b/coders/mat.c Sun Jan 09 09:00:26 2022 -0600
@@ -151,7 +151,7 @@
151151 /* Add coloring to gray image. C=R+j*Q. Colors to red when Q>0 and blue for Q<0.
152152 Please note that this function expects gray image on input. Additional channel contents
153153 checking is wasting of resources only. */
154-static void InsertComplexDoubleRow(double *p, int y, Image *image, double MinVal,
154+static void InsertComplexDoubleRow(double *p, long y, Image *image, double MinVal,
155155 double MaxVal)
156156 {
157157 double f;
@@ -211,7 +211,7 @@
211211 /* Add coloring to gray image. C=R+j*Q. Colors to red when Q>0 and blue for Q<0.
212212 Please note that this function expects gray image on input. Additional channel contents
213213 checking is wasting of resources only. */
214-static void InsertComplexFloatRow(float *p, int y, Image *image, double MinVal, double MaxVal)
214+static void InsertComplexFloatRow(float *p, long y, Image *image, double MinVal, double MaxVal)
215215 {
216216 double f;
217217 int x;
@@ -1172,7 +1172,7 @@
11721172 /* else read color scanlines */
11731173 do
11741174 {
1175- for(i = 0; i < (long) MATLAB_HDR.SizeY; i++)
1175+ for(i = 0; i < MATLAB_HDR.SizeY; i++)
11761176 {
11771177 q = SetImagePixelsEx(image,0,MATLAB_HDR.SizeY-i-1,image->columns,1,&image->exception);
11781178 if (q == (PixelPacket *)NULL)
@@ -1223,7 +1223,7 @@
12231223 } while(z-- >= 2);
12241224 ExitLoop:
12251225
1226- if (i != (long) MATLAB_HDR.SizeY)
1226+ if (i != MATLAB_HDR.SizeY)
12271227 {
12281228 if (logging) (void)LogMagickEvent(CoderEvent,GetMagickModule(),
12291229 "Failed to read all scanlines (failed at row %d of %u rows, z=%d)",
@@ -1257,7 +1257,7 @@
12571257 }
12581258
12591259 if (CellType==miDOUBLE)
1260- for (i = 0; i < (long) MATLAB_HDR.SizeY; i++)
1260+ for (i = 0; i < MATLAB_HDR.SizeY; i++)
12611261 {
12621262 if (ReadBlobXXXDoubles(image2, ldblk, (double *)BImgBuff) != ldblk)
12631263 ThrowImg2MATReaderException(CorruptImageError,UnexpectedEndOfFile,image);
@@ -1265,7 +1265,7 @@
12651265 }
12661266
12671267 if (CellType==miSINGLE)
1268- for (i = 0; i < (long) MATLAB_HDR.SizeY; i++)
1268+ for (i = 0; i < MATLAB_HDR.SizeY; i++)
12691269 {
12701270 if (ReadBlobXXXFloats(image2, ldblk, (float *)BImgBuff) != ldblk)
12711271 ThrowImg2MATReaderException(CorruptImageError,UnexpectedEndOfFile,image);
Show on old repository browser