diff options
-rw-r--r-- | src/.clang-tidy | 1 | ||||
-rw-r--r-- | src/util.c | 2 | ||||
-rw-r--r-- | tools/.clang-tidy | 1 | ||||
-rw-r--r-- | tools/lv2bench.c | 2 |
4 files changed, 2 insertions, 4 deletions
diff --git a/src/.clang-tidy b/src/.clang-tidy index 5bf8761..1c26307 100644 --- a/src/.clang-tidy +++ b/src/.clang-tidy @@ -3,7 +3,6 @@ Checks: > -*-magic-numbers, - -*-uppercase-literal-suffix, -android-cloexec-fopen, -bugprone-branch-clone, -bugprone-narrowing-conversions, @@ -220,7 +220,7 @@ lilv_find_free_path(const char* in_path, char* path = (char*)malloc(in_path_len + 7); memcpy(path, in_path, in_path_len + 1); - for (unsigned i = 2; i < 1000000u; ++i) { + for (unsigned i = 2U; i < 1000000U; ++i) { if (!exists(path, user_data)) { return path; } diff --git a/tools/.clang-tidy b/tools/.clang-tidy index c642a20..b258816 100644 --- a/tools/.clang-tidy +++ b/tools/.clang-tidy @@ -3,7 +3,6 @@ Checks: > -*-magic-numbers, - -*-uppercase-literal-suffix, -android-cloexec-fopen, -bugprone-easily-swappable-parameters, -bugprone-narrowing-conversions, diff --git a/tools/lv2bench.c b/tools/lv2bench.c index 7a23025..4b7eef7 100644 --- a/tools/lv2bench.c +++ b/tools/lv2bench.c @@ -64,7 +64,7 @@ bench(const LilvPlugin* p, uint32_t sample_count, uint32_t block_size) LV2_Feature unmap_feature = {LV2_URID_UNMAP_URI, &unmap}; const LV2_Feature* features[] = {&map_feature, &unmap_feature, NULL}; - float* const buf = (float*)calloc(block_size * 2ul, sizeof(float)); + float* const buf = (float*)calloc(block_size * 2UL, sizeof(float)); float* const in = buf; float* const out = buf + block_size; if (!buf) { |