Skip to content

Commit 8becf87

Browse files
committed
Fixes according to comments
1 parent 79e4146 commit 8becf87

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

.github/actions/setup-common/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ runs:
2020
uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.0
2121
with:
2222
python-version: "3.x"
23+
- name: Set up latest CMake
24+
if: ${{ runner.os != 'Linux' || inputs.oldest-cmake != 'true' }}
25+
uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be # v2.0.2
26+
with:
27+
cmake-version: "latest"
2328
- name: Set up CMake 3.13
2429
if: ${{ runner.os == 'Linux' && inputs.oldest-cmake == 'true' }}
2530
uses: jwlawson/actions-setup-cmake@802fa1a2c4e212495c05bf94dba2704a92a472be # v2.0.2

include/avif/avif.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ extern "C" {
8585
((AVIF_VERSION_MAJOR * 1000000) + (AVIF_VERSION_MINOR * 10000) + (AVIF_VERSION_PATCH * 100) + AVIF_VERSION_DEVEL)
8686

8787
typedef int avifBool;
88-
typedef enum avifTrueFalse
88+
enum avifTrueFalse_
8989
{
9090
AVIF_FALSE = 0,
9191
AVIF_TRUE = 1
92-
} avifTrueFalse;
92+
};
9393

9494
#define AVIF_DIAGNOSTICS_ERROR_BUFFER_SIZE 256
9595

include/avif/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static inline void avifBreakOnError()
6969
} while (0)
7070
#else
7171
#define AVIF_ASSERT_OR_RETURN(A) assert(A)
72-
#define AVIF_ASSERT_NOT_REACHED_OR_RETURN assert(AVIF_FALSE);
72+
#define AVIF_ASSERT_NOT_REACHED_OR_RETURN assert(0);
7373
#endif
7474

7575
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)