diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 11:33:25 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-17 12:30:47 -0400 |
commit | 175c04323ad1aaaa1e0c949b8de411d5e2cece74 (patch) | |
tree | ac359693858f9ba2e619f2d9fc9b809af637a82e /tests | |
parent | 973db12fe33bab8e6efca80deca358b4998d5eb2 (diff) | |
download | ingen-175c04323ad1aaaa1e0c949b8de411d5e2cece74.tar.gz ingen-175c04323ad1aaaa1e0c949b8de411d5e2cece74.tar.bz2 ingen-175c04323ad1aaaa1e0c949b8de411d5e2cece74.zip |
Avoid C-style casts and some size type conversions
Aside from the syntactic cast changes, reduces some size types to 32-bits,
since they can never be so large in practice. This eliminates some type
conversions and shaves a few bytes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/.clang-tidy | 1 | ||||
-rw-r--r-- | tests/ingen_bench.cpp | 2 | ||||
-rw-r--r-- | tests/ingen_test.cpp | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/tests/.clang-tidy b/tests/.clang-tidy index 7e189145..6c26f23c 100644 --- a/tests/.clang-tidy +++ b/tests/.clang-tidy @@ -10,7 +10,6 @@ Checks: > -cppcoreguidelines-pro-type-reinterpret-cast, -cppcoreguidelines-pro-type-union-access, -fuchsia-statically-constructed-objects, - -google-readability-casting, -google-readability-todo, -llvm-header-guard, -readability-function-cognitive-complexity, diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp index a445bdc0..c20e2782 100644 --- a/tests/ingen_bench.cpp +++ b/tests/ingen_bench.cpp @@ -97,7 +97,7 @@ run(int argc, char** argv) "Unable to load server module"); // Initialise engine - ingen_try(bool(world->engine()), + ingen_try(!!world->engine(), "Unable to create engine"); world->engine()->init(48000.0, 4096, 4096); world->engine()->activate(); diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp index 8a3d9007..1e0fcfec 100644 --- a/tests/ingen_test.cpp +++ b/tests/ingen_test.cpp @@ -115,7 +115,7 @@ run(int argc, char** argv) "Unable to load server module"); // Initialise engine - ingen_try(bool(world->engine()), + ingen_try(!!world->engine(), "Unable to create engine"); world->engine()->init(48000.0, 4096, 4096); world->engine()->activate(); |