summaryrefslogtreecommitdiffstats
path: root/zix/ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'zix/ring.c')
-rw-r--r--zix/ring.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zix/ring.c b/zix/ring.c
index 18a133d..a62d833 100644
--- a/zix/ring.c
+++ b/zix/ring.c
@@ -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;
}