diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/.clang-tidy | 3 | ||||
-rw-r--r-- | test/ring_test.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/.clang-tidy b/test/.clang-tidy index 0139c99..9f98471 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -2,8 +2,9 @@ Checks: > *, -*-magic-numbers, -*-uppercase-literal-suffix, - -altera-struct-pack-align, + -altera-*, -android-cloexec-fopen, + -bugprone-easily-swappable-parameters, -bugprone-reserved-identifier, -cert-dcl37-c, -cert-dcl51-cpp, diff --git a/test/ring_test.c b/test/ring_test.c index 2b87efa..af54e0e 100644 --- a/test/ring_test.c +++ b/test/ring_test.c @@ -103,10 +103,10 @@ test_ring(const unsigned size) zix_ring_mlock(ring); ZixThread reader_thread; // NOLINT - assert(!zix_thread_create(&reader_thread, MSG_SIZE * 4, reader, NULL)); + assert(!zix_thread_create(&reader_thread, MSG_SIZE * 4ul, reader, NULL)); ZixThread writer_thread; // NOLINT - assert(!zix_thread_create(&writer_thread, MSG_SIZE * 4, writer, NULL)); + assert(!zix_thread_create(&writer_thread, MSG_SIZE * 4ul, writer, NULL)); zix_thread_join(reader_thread, NULL); zix_thread_join(writer_thread, NULL); |