diff options
author | David Robillard <d@drobilla.net> | 2020-08-13 17:25:57 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-13 17:25:57 +0200 |
commit | fc253203d7aa52d866e21576215de6c40c45f9c4 (patch) | |
tree | e06c737e09c771eb47dea34b7cb5c55c412c5934 /zix/ring.c | |
parent | ea0fd7ddc5086a553e7a94b16b46700af476f3dd (diff) | |
download | zix-fc253203d7aa52d866e21576215de6c40c45f9c4.tar.gz zix-fc253203d7aa52d866e21576215de6c40c45f9c4.tar.bz2 zix-fc253203d7aa52d866e21576215de6c40c45f9c4.zip |
Fix signed operands of bitwise operators
Diffstat (limited to 'zix/ring.c')
-rw-r--r-- | zix/ring.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -56,11 +56,11 @@ next_power_of_two(uint32_t size) { // http://graphics.stanford.edu/~seander/bithacks.html#RoundUpPowerOf2 size--; - size |= size >> 1; - size |= size >> 2; - size |= size >> 4; - size |= size >> 8; - size |= size >> 16; + size |= size >> 1u; + size |= size >> 2u; + size |= size >> 4u; + size |= size >> 8u; + size |= size >> 16u; size++; return size; } |