From ca4750bfc0ca08a5333b2a516ff221ed28173e00 Mon Sep 17 00:00:00 2001 From: tbeu Date: Sat, 19 Oct 2024 22:55:27 +0200 Subject: [PATCH] Add missing dependency [skip ci] Related to https://github.com/cheshirekow/cmake-format-precommit/pull/4 --- .pre-commit-config.yaml | 2 ++ src/mat5.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dcbafa49..f0e02b6c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,11 +20,13 @@ repos: rev: v0.6.13 hooks: - id: cmake-format + additional_dependencies: [pyyaml>=5.1] args: - --line-width=120 - --tab-size=4 exclude: cmake/conan.cmake - id: cmake-lint + additional_dependencies: [pyyaml>=5.1] args: - --line-width=120 - --tab-size=4 diff --git a/src/mat5.c b/src/mat5.c index 5ea50efa..6d3f3318 100644 --- a/src/mat5.c +++ b/src/mat5.c @@ -44,10 +44,10 @@ /** Get type from tag */ #define TYPE_FROM_TAG(a) \ - (((a)&0x000000ff) <= MAT_T_FUNCTION) ? (enum matio_types)((a)&0x000000ff) : MAT_T_UNKNOWN + (((a) & 0x000000ff) <= MAT_T_FUNCTION) ? (enum matio_types)((a) & 0x000000ff) : MAT_T_UNKNOWN /** Get class from array flag */ #define CLASS_FROM_ARRAY_FLAGS(a) \ - (((a)&0x000000ff) <= MAT_C_OPAQUE) ? ((enum matio_classes)((a)&0x000000ff)) : MAT_C_EMPTY + (((a) & 0x000000ff) <= MAT_C_OPAQUE) ? ((enum matio_classes)((a) & 0x000000ff)) : MAT_C_EMPTY /** Class type mask */ #define CLASS_TYPE_MASK 0x000000ff