diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 25fa823..f245918 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,14 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer - id: check-yaml - id: check-added-large-files - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v16.0.6 + rev: v17.0.2 hooks: - id: clang-format - repo: https://github.com/psf/black diff --git a/src/sha1.c b/src/sha1.c index d3add86..b8df00c 100644 --- a/src/sha1.c +++ b/src/sha1.c @@ -67,7 +67,7 @@ #define CONST4 0xca62c1d6L /* truncate to 32 bits -- should be a null op on 32-bit machines */ -#define T32(x) ((x)&0xffffffffL) +#define T32(x) ((x) & 0xffffffffL) /* 32-bit rotate */ #define R32(x, n) T32(((x << n) | (x >> (32 - n)))) diff --git a/src/srs2.h b/src/srs2.h index aec5cdb..27ce25e 100644 --- a/src/srs2.h +++ b/src/srs2.h @@ -94,7 +94,7 @@ __BEGIN_DECLS #define SRS_ETIMESTAMPOUTOFDATE (SRS_ERRTYPE_SRS | 1) #define SRS_EHASHINVALID (SRS_ERRTYPE_SRS | 2) -#define SRS_ERROR_TYPE(x) ((x)&SRS_ERRTYPE_MASK) +#define SRS_ERROR_TYPE(x) ((x) & SRS_ERRTYPE_MASK) /* SRS implementation */