Main GraphicsMagick source repository
Revision | 4870b654f4bb3bc82f86f28dac0aba266f1f8171 (tree) |
---|---|
Time | 2022-01-10 00:00:26 |
Author | Bob Friesenhahn <bfriesen@Grap...> |
Commiter | Bob Friesenhahn |
Eliminate signed vs unsigned warnings.
@@ -151,7 +151,7 @@ | ||
151 | 151 | /* Add coloring to gray image. C=R+j*Q. Colors to red when Q>0 and blue for Q<0. |
152 | 152 | Please note that this function expects gray image on input. Additional channel contents |
153 | 153 | 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, | |
155 | 155 | double MaxVal) |
156 | 156 | { |
157 | 157 | double f; |
@@ -211,7 +211,7 @@ | ||
211 | 211 | /* Add coloring to gray image. C=R+j*Q. Colors to red when Q>0 and blue for Q<0. |
212 | 212 | Please note that this function expects gray image on input. Additional channel contents |
213 | 213 | 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) | |
215 | 215 | { |
216 | 216 | double f; |
217 | 217 | int x; |
@@ -1172,7 +1172,7 @@ | ||
1172 | 1172 | /* else read color scanlines */ |
1173 | 1173 | do |
1174 | 1174 | { |
1175 | - for(i = 0; i < (long) MATLAB_HDR.SizeY; i++) | |
1175 | + for(i = 0; i < MATLAB_HDR.SizeY; i++) | |
1176 | 1176 | { |
1177 | 1177 | q = SetImagePixelsEx(image,0,MATLAB_HDR.SizeY-i-1,image->columns,1,&image->exception); |
1178 | 1178 | if (q == (PixelPacket *)NULL) |
@@ -1223,7 +1223,7 @@ | ||
1223 | 1223 | } while(z-- >= 2); |
1224 | 1224 | ExitLoop: |
1225 | 1225 | |
1226 | - if (i != (long) MATLAB_HDR.SizeY) | |
1226 | + if (i != MATLAB_HDR.SizeY) | |
1227 | 1227 | { |
1228 | 1228 | if (logging) (void)LogMagickEvent(CoderEvent,GetMagickModule(), |
1229 | 1229 | "Failed to read all scanlines (failed at row %d of %u rows, z=%d)", |
@@ -1257,7 +1257,7 @@ | ||
1257 | 1257 | } |
1258 | 1258 | |
1259 | 1259 | if (CellType==miDOUBLE) |
1260 | - for (i = 0; i < (long) MATLAB_HDR.SizeY; i++) | |
1260 | + for (i = 0; i < MATLAB_HDR.SizeY; i++) | |
1261 | 1261 | { |
1262 | 1262 | if (ReadBlobXXXDoubles(image2, ldblk, (double *)BImgBuff) != ldblk) |
1263 | 1263 | ThrowImg2MATReaderException(CorruptImageError,UnexpectedEndOfFile,image); |
@@ -1265,7 +1265,7 @@ | ||
1265 | 1265 | } |
1266 | 1266 | |
1267 | 1267 | if (CellType==miSINGLE) |
1268 | - for (i = 0; i < (long) MATLAB_HDR.SizeY; i++) | |
1268 | + for (i = 0; i < MATLAB_HDR.SizeY; i++) | |
1269 | 1269 | { |
1270 | 1270 | if (ReadBlobXXXFloats(image2, ldblk, (float *)BImgBuff) != ldblk) |
1271 | 1271 | ThrowImg2MATReaderException(CorruptImageError,UnexpectedEndOfFile,image); |