diff options
author | David Robillard <d@drobilla.net> | 2022-06-28 18:48:41 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-06-28 19:02:49 -0400 |
commit | 71c4a3a6d66e96661fd341e1a089c4d8bd63fb13 (patch) | |
tree | 615c31e8399736519119ca8b37bc3c97ec2c1242 /include | |
parent | 5d62313812b2fee9a4986e6b7ca1af40fb4f2fb6 (diff) | |
download | zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.gz zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.tar.bz2 zix-71c4a3a6d66e96661fd341e1a089c4d8bd63fb13.zip |
Use uppercase integer literal suffixes
I give in.
Diffstat (limited to 'include')
-rw-r--r-- | include/.clang-tidy | 2 | ||||
-rw-r--r-- | include/zix/btree.h | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/include/.clang-tidy b/include/.clang-tidy index 7a48cc4..a644849 100644 --- a/include/.clang-tidy +++ b/include/.clang-tidy @@ -3,12 +3,10 @@ Checks: > *, - -*-uppercase-literal-suffix, -altera-*, -clang-diagnostic-unused-function, -clang-diagnostic-unused-macros, -hicpp-multiway-paths-covered, - -hicpp-uppercase-literal-suffix, -llvmlibc-*, WarningsAsErrors: '*' HeaderFilterRegex: '.*' diff --git a/include/zix/btree.h b/include/zix/btree.h index 92e5c5f..24a0171 100644 --- a/include/zix/btree.h +++ b/include/zix/btree.h @@ -33,7 +33,7 @@ extern "C" { height of 6 is enough to store trillions. */ #ifndef ZIX_BTREE_MAX_HEIGHT -# define ZIX_BTREE_MAX_HEIGHT 6u +# define ZIX_BTREE_MAX_HEIGHT 6U #endif /// A B-Tree @@ -60,8 +60,8 @@ typedef struct { /// A static end iterator for convenience static const ZixBTreeIter zix_btree_end_iter = { {NULL, NULL, NULL, NULL, NULL, NULL}, - {0u, 0u, 0u, 0u, 0u, 0u}, - 0u}; + {0U, 0U, 0U, 0U, 0U, 0U}, + 0U}; /** Create a new (empty) B-Tree. |