Skip to content

Commit 0124836

Browse files
committed
update clang-format to 17
1 parent 5e8ad46 commit 0124836

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.ci/check-format.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -x
88

99
for file in ${SOURCES};
1010
do
11-
clang-format-18 ${file} > expected-format
11+
clang-format-17 ${file} > expected-format
1212
diff -u -p --label="${file}" --label="expected coding style" ${file} expected-format
1313
done
14-
exit $(clang-format-18 --output-replacements-xml ${SOURCES} | egrep -c "</replacement>")
14+
exit $(clang-format-17 --output-replacements-xml ${SOURCES} | egrep -c "</replacement>")

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123
- uses: actions/checkout@v4
124124
- name: coding convention
125125
run: |
126-
sudo apt-get install -q -y clang-format-18
126+
sudo apt-get install -q -y clang-format-17
127127
.ci/check-newline.sh
128128
.ci/check-format.sh
129129
shell: bash

tests/line.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void svpng(FILE *fp, unsigned w, unsigned h, const uint8_t *img, bool alpha)
7777
SVPNG_PUT((u) >> 24); \
7878
SVPNG_PUT(((u) >> 16) & 255); \
7979
SVPNG_PUT(((u) >> 8) & 255); \
80-
SVPNG_PUT((u) &255); \
80+
SVPNG_PUT((u) & 255); \
8181
} while (0)
8282

8383
#define SVPNG_U8C(u) \
@@ -94,7 +94,7 @@ void svpng(FILE *fp, unsigned w, unsigned h, const uint8_t *img, bool alpha)
9494

9595
#define SVPNG_U16LC(u) \
9696
do { \
97-
SVPNG_U8C((u) &255); \
97+
SVPNG_U8C((u) & 255); \
9898
SVPNG_U8C(((u) >> 8) & 255); \
9999
} while (0)
100100

@@ -103,7 +103,7 @@ void svpng(FILE *fp, unsigned w, unsigned h, const uint8_t *img, bool alpha)
103103
SVPNG_U8C((u) >> 24); \
104104
SVPNG_U8C(((u) >> 16) & 255); \
105105
SVPNG_U8C(((u) >> 8) & 255); \
106-
SVPNG_U8C((u) &255); \
106+
SVPNG_U8C((u) & 255); \
107107
} while (0)
108108

109109
#define SVPNG_U8ADLER(u) \

0 commit comments

Comments
 (0)