diff options
Diffstat (limited to 'kern/log2.h')
-rw-r--r-- | kern/log2.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/log2.h b/kern/log2.h index c9cc5be1..0a3768a7 100644 --- a/kern/log2.h +++ b/kern/log2.h @@ -36,8 +36,9 @@ iorder2(unsigned long size) { assert(size != 0); - if (size == 1) + if (size == 1) { return 0; + } return ilog2(size - 1) + 1; } |