summaryrefslogtreecommitdiffstats
path: root/sal/rtl/alloc_impl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl/alloc_impl.hxx')
-rw-r--r--sal/rtl/alloc_impl.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/rtl/alloc_impl.hxx b/sal/rtl/alloc_impl.hxx
index d10ba930c57e..fada22718d43 100644
--- a/sal/rtl/alloc_impl.hxx
+++ b/sal/rtl/alloc_impl.hxx
@@ -65,10 +65,10 @@
/** highbit(): log2() + 1
* (complexity O(1))
*/
-static inline int
+static inline unsigned int
highbit(sal_Size n)
{
- int k = 1;
+ unsigned int k = 1;
if (n == 0)
return 0;
@@ -108,10 +108,10 @@ highbit(sal_Size n)
/** lowbit(): find first bit set
* (complexity O(1))
*/
-static inline int
+static inline unsigned int
lowbit(sal_Size n)
{
- int k = 1;
+ unsigned int k = 1;
if (n == 0)
return 0;