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