Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 22, 2024
1 parent 1b567c5 commit 44d70b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/PIL/VtfImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Full text of the CC0 license:
https://creativecommons.org/publicdomain/zero/1.0/
"""

from __future__ import annotations

import struct
Expand Down
6 changes: 3 additions & 3 deletions src/libImaging/Bcn.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ typedef struct {

#define BIT_MASK(bit_count) ((1 << (bit_count)) - 1)
#define SET_BITS(target, bit_offset, bit_count, value) \
target |= (((value)&BIT_MASK(bit_count)) << (bit_offset))
target |= (((value) & BIT_MASK(bit_count)) << (bit_offset))
#define GET_BITS(source, bit_offset, bit_count) \
((source) & (BIT_MASK(bit_count) << (bit_offset))) >> (bit_offset)
#define SWAP(TYPE, A, B) \
do { \
TYPE TMP = A; \
(A) = B; \
(B) = TMP; \
(A) = B; \
(B) = TMP; \
} while (0)
2 changes: 0 additions & 2 deletions src/libImaging/BcnDecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

#include "Bcn.h"



#define LOAD16(p) (p)[0] | ((p)[1] << 8)

#define LOAD32(p) (p)[0] | ((p)[1] << 8) | ((p)[2] << 16) | ((p)[3] << 24)
Expand Down

0 comments on commit 44d70b8

Please sign in to comment.