mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Lint fixes
This commit is contained in:
parent
22b64ffcf2
commit
82910a5e4f
|
@ -94,8 +94,8 @@ ImagingNewDIB(const char *mode, int xsize, int ysize) {
|
||||||
return (ImagingDIB)ImagingError_MemoryError();
|
return (ImagingDIB)ImagingError_MemoryError();
|
||||||
}
|
}
|
||||||
|
|
||||||
dib->bitmap =
|
dib->bitmap = CreateDIBSection(
|
||||||
CreateDIBSection(dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
|
dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
|
||||||
if (!dib->bitmap) {
|
if (!dib->bitmap) {
|
||||||
free(dib->info);
|
free(dib->info);
|
||||||
free(dib);
|
free(dib);
|
||||||
|
|
|
@ -1005,7 +1005,8 @@ ImagingLibTiffEncode(Imaging im, ImagingCodecState state, UINT8 *buffer, int byt
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state->state == 1 && !clientstate->fp) {
|
if (state->state == 1 && !clientstate->fp) {
|
||||||
int read = (int)_tiffReadProc((thandle_t)clientstate, (tdata_t)buffer, (tsize_t)bytes);
|
int read =
|
||||||
|
(int)_tiffReadProc((thandle_t)clientstate, (tdata_t)buffer, (tsize_t)bytes);
|
||||||
TRACE(
|
TRACE(
|
||||||
("Buffer: %p: %c%c%c%c\n",
|
("Buffer: %p: %c%c%c%c\n",
|
||||||
buffer,
|
buffer,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user