Skip to content

Commit 38047cf

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1141d95 commit 38047cf

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

src/_imagingcms.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,11 @@ findLCMStype(char *PILmode) {
223223
if (strcmp(PILmode, "CMYK") == 0) {
224224
return TYPE_CMYK_8;
225225
}
226-
if (
227-
strcmp(PILmode, "I;16") == 0 ||
228-
strcmp(PILmode, "I;16L") == 0 ||
229-
strcmp(PILmode, "L;16") == 0
230-
) {
226+
if (strcmp(PILmode, "I;16") == 0 || strcmp(PILmode, "I;16L") == 0 ||
227+
strcmp(PILmode, "L;16") == 0) {
231228
return TYPE_GRAY_16;
232229
}
233-
if (
234-
strcmp(PILmode, "I;16B") == 0 ||
235-
strcmp(PILmode, "L;16B") == 0
236-
) {
230+
if (strcmp(PILmode, "I;16B") == 0 || strcmp(PILmode, "L;16B") == 0) {
237231
return TYPE_GRAY_16_SE;
238232
}
239233
if (strcmp(PILmode, "YCbCr") == 0 || strcmp(PILmode, "YCCA") == 0 ||

src/libImaging/Dib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ ImagingNewDIB(const char *mode, int xsize, int ysize) {
9494
return (ImagingDIB)ImagingError_MemoryError();
9595
}
9696

97-
dib->bitmap =
98-
CreateDIBSection(dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
97+
dib->bitmap = CreateDIBSection(
98+
dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
9999
if (!dib->bitmap) {
100100
free(dib->info);
101101
free(dib);

src/libImaging/TiffDecode.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,8 @@ ImagingLibTiffEncode(Imaging im, ImagingCodecState state, UINT8 *buffer, int byt
10051005
}
10061006

10071007
if (state->state == 1 && !clientstate->fp) {
1008-
int read = (int)_tiffReadProc((thandle_t)clientstate, (tdata_t)buffer, (tsize_t)bytes);
1008+
int read =
1009+
(int)_tiffReadProc((thandle_t)clientstate, (tdata_t)buffer, (tsize_t)bytes);
10091010
TRACE(
10101011
("Buffer: %p: %c%c%c%c\n",
10111012
buffer,

0 commit comments

Comments
 (0)